91 lines
2.9 KiB
Plaintext
91 lines
2.9 KiB
Plaintext
@page "/TestGraphCompo"
|
|
|
|
<PageTitle>Test</PageTitle>
|
|
|
|
<div class="card shadow ">
|
|
<div class="card-header"><h4>Test Componenti Arrow SVG</h4></div>
|
|
<div class="card-body">
|
|
<div class="row bg-secondary py-2">
|
|
<div class="col">
|
|
<StepArrow ObjId="123" StepText="Prova Arrow 01" BlockStyle="@($"fill: #123456;")" StrokeWidth="4" ObjW="650" ObjH="100" StrokeColors="@listBord01" TipAngle="90"></StepArrow>
|
|
</div>
|
|
<div class="col">
|
|
<StepArrow ObjId="456" StepText="Prova Arrow 02" BlockStyle="@($"fill: #456789;")" StrokeWidth="4" ObjW="600" ObjH="100" StrokeColors="@listBord02" TipAngle="60"></StepArrow>
|
|
</div>
|
|
<div class="col">
|
|
<StepArrow ObjId="456" StepText="Prova Arrow 03" BlockStyle="@($"fill: #6789AB;")" StrokeWidth="4" ObjW="500" ObjH="100" StrokeColors="@listBord03" TipAngle="120"></StepArrow>
|
|
</div>
|
|
<div class="col">
|
|
<StepArrow ObjId="456" StepText="Prova Arrow 04" BlockStyle="@($"fill: #89ABCD;")" StrokeWidth="0" ObjW="700" ObjH="100" TipAngle="108"></StepArrow>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card shadow ">
|
|
<div class="card-header"><h4>Test Componenti Vari</h4></div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-3">
|
|
<Toggler SelFilter="@TogFilter"></Toggler>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card shadow ">
|
|
<div class="card-header"><h4>Test Input</h4></div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-3">
|
|
<NumInput Value="@numero"></NumInput>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@code {
|
|
Toggler.SelectGlobalToggle TogFilter { get; set; } = new Toggler.SelectGlobalToggle();
|
|
|
|
private int currentCount = 0;
|
|
|
|
protected Random rnd = new Random();
|
|
|
|
private int numero = 0;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
base.OnInitialized();
|
|
listBord01 = new();
|
|
listBord01.Add("");
|
|
listBord01.Add("White");
|
|
listBord01.Add("");
|
|
listBord01.Add("");
|
|
listBord02 = new();
|
|
listBord02.Add("");
|
|
listBord02.Add("White");
|
|
listBord02.Add("");
|
|
listBord02.Add("White");
|
|
listBord03 = new();
|
|
listBord03.Add("");
|
|
listBord03.Add("White");
|
|
listBord03.Add("");
|
|
listBord03.Add("Blue");
|
|
|
|
// toggler!
|
|
TogFilter = new()
|
|
{
|
|
isActive = true,
|
|
leftString = "opzione sx",
|
|
rightString = "opzione dx"
|
|
};
|
|
|
|
//test input
|
|
numero = rnd.Next(0, 100);
|
|
}
|
|
|
|
|
|
protected List<string> listBord01 { get; set; } = new();
|
|
protected List<string> listBord02 { get; set; } = new();
|
|
protected List<string> listBord03 { get; set; } = new();
|
|
|
|
}
|