parent
d6ee4bc164
commit
a9282b9b0a
@ -0,0 +1,29 @@
|
|||||||
|
@page "/formwizard"
|
||||||
|
@using Connected.Classes.FormWizard;
|
||||||
|
@using Connected.Components;
|
||||||
|
@using Connected.Enums;
|
||||||
|
@using Connected.Models.Modal;
|
||||||
|
@using Connected.Models;
|
||||||
|
@using Connected.Services;
|
||||||
|
@using Connected.Utilities;
|
||||||
|
|
||||||
|
<h1 style="text-align:center;">FORM WIZARD EXAMPLE</h1>
|
||||||
|
|
||||||
|
<FormWizard Options="@options">
|
||||||
|
<FormWizardStep>
|
||||||
|
Step 1
|
||||||
|
</FormWizardStep>
|
||||||
|
<FormWizardStep>
|
||||||
|
Step2
|
||||||
|
</FormWizardStep>
|
||||||
|
<FormWizardStep>
|
||||||
|
Step3
|
||||||
|
</FormWizardStep>
|
||||||
|
<FormWizardStep>
|
||||||
|
Step4
|
||||||
|
</FormWizardStep>
|
||||||
|
</FormWizard>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
FormWizardOptions options = new(false, "Naslednji", "Prejšnji", "Končaj", "Prekliči");
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
@page "/toggleglyph"
|
||||||
|
@using Connected.Components;
|
||||||
|
@using Connected.Enums;
|
||||||
|
@using Connected.Models.Modal;
|
||||||
|
@using Connected.Models;
|
||||||
|
@using Connected.Services;
|
||||||
|
@using Connected.Utilities;
|
||||||
|
|
||||||
|
@inject ModalDialogService modalDialog;
|
||||||
|
|
||||||
|
|
||||||
|
<h1 style="text-align:center;">DATE PICKER EXAMPLE</h1>
|
||||||
|
|
||||||
|
|
||||||
|
<ToggleGlyphButton Glyph="@Icons.Material.Filled.Close" ToggledGlyph="@Icons.Material.Filled.Check" @bind-Toggled=toggle>
|
||||||
|
TGB
|
||||||
|
</ToggleGlyphButton>
|
||||||
|
|
||||||
|
|
||||||
|
<h4>Toggled: @toggle</h4>
|
||||||
|
|
||||||
|
|
||||||
|
@code {
|
||||||
|
bool toggle = false;
|
||||||
|
}
|
@ -1,22 +1,27 @@
|
|||||||
<CascadingValue Value="this">
|
@if (loaded)
|
||||||
<section id="@Id" class="@ClassList" style="@StyleList">
|
{
|
||||||
<div class="form-outer ">
|
<CascadingValue Value="this">
|
||||||
@ChildContent
|
<section id="@Id" class="@ClassList" style="@StyleList">
|
||||||
</div>
|
<div class="form-outer ">
|
||||||
|
@ChildContent
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="btn-content justify-space-between">
|
<div class="btn-content justify-space-between">
|
||||||
<button type="button" href="#" class="btn btn-secondary" aria-pressed="true" disabled="@WizardFinished" @onclick="CancelClick">Cancel</button>
|
<button type="button" href="#" class="btn btn-secondary" aria-pressed="true" disabled="@NavigationDisabled" @onclick="CancelClick">@Options.CancelButtonText</button>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<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="PreviousSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@NavigationDisabled"><i class='bx bx-chevron-left'></i>@Options.PreviousButtonText</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>
|
<button type="button" @onclick="NextSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@NavigationDisabled">@NextBtnText<i class='bx bx-chevron-right'></i></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dots d-flex justify-center gap-3">
|
<div class="dots d-flex justify-center gap-3">
|
||||||
@foreach (var step in Steps)
|
@foreach (var step in Steps)
|
||||||
{
|
{
|
||||||
<div class="dot @step.DotClass"></div>
|
<div class="dot @step.DotClass"></div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</CascadingValue>
|
</CascadingValue>
|
||||||
|
} else {
|
||||||
|
<p>Loading wizard....</p>
|
||||||
|
}
|
@ -1,21 +1,12 @@
|
|||||||
@inherits Button
|
@inherits GlyphButton
|
||||||
|
|
||||||
<button type="button"
|
<button type="button"
|
||||||
@onclick="@Clicked"
|
@onclick="@Clicked"
|
||||||
disabled=@Disabled
|
disabled=@Disabled
|
||||||
style="@StyleList"
|
style="@StyleList"
|
||||||
class="@ClassList">
|
class="@ClassList">
|
||||||
<div class="@ContentClassList">
|
<div class="@ContentClassList">
|
||||||
<div style="align-items:center">
|
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
||||||
@if (GlyphPosition == Position.Top)
|
|
||||||
{
|
|
||||||
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
|
||||||
}
|
|
||||||
@ChildContent
|
@ChildContent
|
||||||
@if (GlyphPosition == Position.Bottom)
|
|
||||||
{
|
|
||||||
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
|
||||||
}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
Reference in new issue