parent
10a7454c48
commit
550d608104
@ -1,49 +1,30 @@
|
||||
@page "/"
|
||||
@using Connected.Models;
|
||||
|
||||
<h1 style="text-align:center;">Component Sandbox</h1>
|
||||
|
||||
|
||||
<p>SelectedValue: @SelectedValue.ToString()</p>
|
||||
|
||||
<RadioGroup Name="Group1">
|
||||
<Radio Id="radio1" Label="Group 1, Radio 1"></Radio>
|
||||
<Radio Id="radio2" Label="Group 1, Radio 2"></Radio>
|
||||
<Radio Id="radio3" Label="Group 1, Radio 3"></Radio>
|
||||
<Radio Id="radio4" Label="Group 1, Radio 4"></Radio>
|
||||
<Radio Id="radio5" Label="Group 1, Radio 5" Disabled=true></Radio>
|
||||
</RadioGroup>
|
||||
|
||||
<RadioGroup Name="Group2" Disabled=true>
|
||||
<Radio Id="radio21" Label="Group 2, Radio 1"></Radio>
|
||||
<Radio Id="radio22" Label="Group 2, Radio 2"></Radio>
|
||||
<Radio Id="radio23" Label="Group 2, Radio 3"></Radio>
|
||||
<Radio Id="radio24" Label="Group 2, Radio 4"></Radio>
|
||||
<Radio Id="radio25" Label="Group 2, Radio 5"></Radio>
|
||||
</RadioGroup>
|
||||
@code {
|
||||
|
||||
int SelectedValue;
|
||||
<h1 style="text-align:center;">Component Sandbox</h1>
|
||||
|
||||
List<int> items;
|
||||
<FormWizard Id="Wizard1">
|
||||
<FormWizardStep Name="Step1">
|
||||
Step1
|
||||
</FormWizardStep>
|
||||
<FormWizardStep Name="Step2">
|
||||
Step2
|
||||
</FormWizardStep>
|
||||
<FormWizardStep Name="Step3">
|
||||
Step3
|
||||
</FormWizardStep>
|
||||
<FormWizardStep Name="Step4">
|
||||
Step4
|
||||
</FormWizardStep>
|
||||
</FormWizard>
|
||||
|
||||
private void FillItemsList()
|
||||
{
|
||||
if (items is null) items = new();
|
||||
|
||||
Random random = new Random(DateTime.Now.Millisecond);
|
||||
<TextInput @bind-Value="@value"></TextInput>
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int item = random.Next();
|
||||
items.Add(item);
|
||||
}
|
||||
StateHasChanged();
|
||||
}
|
||||
@value
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
FillItemsList();
|
||||
}
|
||||
|
||||
@code {
|
||||
public string value = string.Empty;
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
<h3>Chip</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
<CascadingValue Value="this">
|
||||
|
||||
<section id="@Id" class="@ClassList" style="@StyleList">
|
||||
<div class="form-outer">
|
||||
@ChildContent
|
||||
</div>
|
||||
|
||||
<div class="btn-box text-right my-5 d-flex justify-space-between">
|
||||
<button type="button" href="#" class="btn btn-secondary" aria-pressed="true" disabled="@WizardFinished">Cancel</button>
|
||||
<div>
|
||||
<button type="button" @onclick="PreviousSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@WizardFinished"><i class='bx bx-chevron-left'></i>@PreviousBtnText</button>
|
||||
<button type="button" @onclick="NextSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@WizardFinished">@NextBtnText<i class='bx bx-chevron-right'></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dots d-flex justify-center gap-3">
|
||||
@foreach (var step in Steps)
|
||||
{
|
||||
<div class="dot @step.DotClass"></div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</CascadingValue>
|
@ -0,0 +1,3 @@
|
||||
<div class="@ClassList" style="@StyleList">
|
||||
@ChildContent
|
||||
</div>
|
Loading…
Reference in new issue