Skip to content

Commit 77fc937

Browse files
committed
Add IntroStep
1 parent 3672ad4 commit 77fc937

File tree

7 files changed

+399
-86
lines changed

7 files changed

+399
-86
lines changed

CodeBeam.MudBlazor.Extensions.Docs.Wasm/wwwroot/CodeBeam.MudBlazor.Extensions.xml

Lines changed: 126 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeBeam.MudBlazor.Extensions.Docs/Pages/Components/StepperExtended/Examples/StepperExtendedExample3.razor

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@
66
<MudItem xs="12" sm="8" Class="d-flex align-center">
77

88
<MudStepperExtended @ref="_stepper"
9-
Class="mud-width-full"
10-
ContentStyle="min-height: 400px"
11-
Linear="_linear"
12-
Vertical="_vertical"
13-
PreventStepChangeAsync="CheckChange"
14-
BeforeFinishedAsync="BeforeFinishedAsync"
15-
OnFinished="OnFinished"
16-
Variant="Variant.Filled"
17-
Color="Color.Secondary"
18-
MobileView="_mobileView"
19-
Loading="_loading"
20-
HeaderTextView="HeaderTextView.All">
9+
Class="mud-width-full" ContentStyle="min-height: 400px"
10+
Linear="_linear" Vertical="_vertical"
11+
PreventStepChangeAsync="CheckChange" BeforeFinishedAsync="BeforeFinishedAsync" OnFinished="OnFinished"
12+
Variant="Variant.Filled" Color="Color.Secondary"
13+
MobileView="_mobileView" Loading="_loading" HeaderTextView="HeaderTextView.All" StepperActionsJustify="_stepperActionsJustify">
2114

2215
<ChildContent>
23-
16+
<MudStepExtended Icon="@Icons.Material.Filled.DoneAll" Title="Start Your Reservation" IsIntroStep="true">
17+
<div class="d-flex flex-column align-center justify-center mud-height-full">
18+
<MudIcon Icon="@Icons.Material.Filled.Book"
19+
Size="Size.Large"
20+
Color="Color.Secondary" />
21+
<MudText Typo="Typo.h6" Class="mt-2">This is your reservation wizard.</MudText>
22+
<MudText Typo="Typo.h6" Class="mt-2">Press start when you are ready.</MudText>
23+
</div>
24+
</MudStepExtended>
2425
<MudStepExtended Icon="@Icons.Material.Filled.Approval"
2526
Title="Customer Info"
2627
StatusChanged="OnStatusChanged"
@@ -127,7 +128,12 @@
127128
Variant="Variant.Outlined"
128129
Margin="Margin.Dense"
129130
Immediate="true" />
130-
131+
<MudSelect @bind-Value="_stepperActionsJustify" Variant="Variant.Outlined" Label="Action Buttons Justify" Margin="Margin.Dense" Dense="true">
132+
@foreach (StepperActionsJustify item in Enum.GetValues<StepperActionsJustify>())
133+
{
134+
<MudSelectItem Value="item">@item.ToDescriptionString()</MudSelectItem>
135+
}
136+
</MudSelect>
131137
<MudCheckBox @bind-Value="_vertical" Label="Vertical" />
132138
<MudCheckBox @bind-Value="_linear" Label="Linear" />
133139
<MudSwitchM3 @bind-Value="_mobileView" Label="Mobile View" Color="Color.Secondary" />
@@ -153,6 +159,7 @@
153159
int _infoStepOrder;
154160
int _optionsStepOrder;
155161
int _paymentStepOrder;
162+
StepperActionsJustify _stepperActionsJustify = StepperActionsJustify.SpaceBetween;
156163

157164
private void OnStatusChanged(StepStatus status)
158165
{

0 commit comments

Comments
 (0)