|
5 | 5 |
|
6 | 6 | <MudGrid Class="cursor-default"> |
7 | 7 | <MudItem xs="12" sm="8" Class="d-flex align-center"> |
8 | | - <MudStepper @ref="_stepper" Class="mud-width-full" ContentStyle="min-height: 400px" Linear="_linear" Vertical="_vertical" Color="_color" Variant="_variant" |
| 8 | + <MudStepperExtended @ref="_stepper" Class="mud-width-full" ContentStyle="min-height: 400px" Linear="_linear" Vertical="_vertical" Color="_color" Variant="_variant" |
9 | 9 | DisableAnimation="_disableAnimation" DisablePreviousButton="_disablePreviousButton" DisableNextButton="_disableNextButton" |
10 | 10 | DisableSkipButton="_disableSkipButton" DisableStepResultIndicator="_disableStepResultIndicator" HeaderBadgeView="_headerBadgeView" |
11 | 11 | HeaderTextView="_headerTextView" PreventStepChangeAsync="new Func<StepChangeDirection, int, Task<bool>>(CheckChange)" LocalizedStrings="GetLocalizedStrings()" |
|
21 | 21 | } |
22 | 22 | </StaticContent> |
23 | 23 | <ChildContent> |
24 | | - <MudStep Icon="@Icons.Material.Filled.Approval" Title="Customer Info" StatusChanged="StatusChanged"> |
| 24 | + <MudStepExtended Icon="@Icons.Material.Filled.Approval" Title="Customer Info" StatusChanged="StatusChanged"> |
25 | 25 | <ChildContent> |
26 | 26 | <MudForm @ref="_form"> |
27 | 27 | <MudStack> |
|
31 | 31 | </MudStack> |
32 | 32 | </MudForm> |
33 | 33 | </ChildContent> |
34 | | - </MudStep> |
35 | | - <MudStep Title="Booking Spec." Icon="@Icons.Material.Filled.MoreVert" Optional="true"> |
| 34 | + </MudStepExtended> |
| 35 | + <MudStepExtended Title="Booking Spec." Icon="@Icons.Material.Filled.MoreVert" Optional="true"> |
36 | 36 | <ChildContent> |
37 | 37 | <MudCheckBox T="bool" Label="Early Check-in" Color="_color" /> |
38 | 38 | <MudCheckBox T="bool" Label="Late Check-out" Color="_color" /> |
39 | 39 | <MudCheckBox T="bool" Label="Twin Bed" Color="_color" /> |
40 | 40 | </ChildContent> |
41 | | - </MudStep> |
42 | | - <MudStep Icon="@Icons.Material.Filled.Money" Title="Payment"> |
| 41 | + </MudStepExtended> |
| 42 | + <MudStepExtended Icon="@Icons.Material.Filled.Money" Title="Payment"> |
43 | 43 | <ChildContent> |
44 | 44 | <MudForm @ref="_form2"> |
45 | 45 | <MudStack> |
|
51 | 51 | </MudStack> |
52 | 52 | </MudForm> |
53 | 53 | </ChildContent> |
54 | | - </MudStep> |
| 54 | + </MudStepExtended> |
55 | 55 |
|
56 | 56 | @if (_addResultStep) |
57 | 57 | { |
58 | | - <MudStep Icon="@Icons.Material.Filled.Alarm" Title="Result Step" IsResultStep="true"> |
| 58 | + <MudStepExtended Icon="@Icons.Material.Filled.Alarm" Title="Result Step" IsResultStep="true"> |
59 | 59 | <ChildContent> |
60 | 60 | <div class="d-flex flex-column align-center justify-center" style="height: 200px"> |
61 | 61 | <MudIconButton Icon="@Icons.Material.Filled.DoneAll" Size="Size.Large" Variant="Variant.Filled" Color="Color.Success" /> |
62 | 62 | <MudText>Your reservation successfully completed.</MudText> |
63 | 63 | </div> |
64 | 64 | </ChildContent> |
65 | | - </MudStep> |
| 65 | + </MudStepExtended> |
66 | 66 | } |
67 | 67 | </ChildContent> |
68 | 68 | <ActionContent> |
|
72 | 72 | } |
73 | 73 | @* <MudSpacer /> *@ |
74 | 74 | </ActionContent> |
75 | | - </MudStepper> |
| 75 | + </MudStepperExtended> |
76 | 76 | </MudItem> |
77 | 77 |
|
78 | 78 | <MudItem xs="12" sm="4" Style="box-shadow: rgba(240, 46, 170, 0.4) -3px 3px;"> |
|
129 | 129 | </MudGrid> |
130 | 130 |
|
131 | 131 | @code { |
132 | | - MudStepper? _stepper = new(); |
133 | | - MudForm? _form; |
134 | | - MudForm? _form2; |
| 132 | + MudStepperExtended? _stepper = new(); |
| 133 | + MudForm? _form = new(); |
| 134 | + MudForm? _form2 = new(); |
135 | 135 | bool _checkValidationBeforeComplete = false; |
136 | 136 | bool _linear; |
137 | 137 | bool _mobileView; |
|
0 commit comments