File tree Expand file tree Collapse file tree
StaticSample.Client/Pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88<MudText Typo =" Typo.h5" GutterBottom =" true" >Interactivity in this Demo</MudText >
99<MudText Typo =" Typo.body2" >
10- This sample project was created using the Global InteractiveAuto
10+ This sample project was created using the Global InteractiveWebAssembly
1111 <MudLink Href =" https://github.com/MudBlazor/Templates" Target =" _blank" Color =" Color.Secondary" >Template</MudLink >. <br />
1212 When using "Global" Interactivity, the render modes are defined in App.razor and applied to all child components. <br />
1313 <br />
4242 </MudCardContent >
4343 </MudCard >
4444 <MudCard Elevation =" 3" Style =" max-width:400px;" >
45- <MudCardHeader ><MudText Typo =" Typo.h6" >InteractiveAuto </MudText ></MudCardHeader >
45+ <MudCardHeader ><MudText Typo =" Typo.h6" >Render Modes </MudText ></MudCardHeader >
4646 <MudCardContent >
4747 <MudText Typo =" Typo.body2" >
48- To demonstrate the behavior of InteractiveAuto rendering, this demo includes render mode details in the App Bar. <br />
48+ This demo includes render mode details in the App Bar. <br />
4949 The information updates to reflect how the current page is presently being rendered. <br />
5050 <br />
5151 <strong >SSR</strong > Rendered: Interactive Server-Side Rendering <br />
Original file line number Diff line number Diff line change 5555 <MudStaticTextField @bind-Value =" @Input.ConfirmPassword" Adornment =" Adornment.Start" AdornmentIcon =" @Icons.Material.Outlined.Lock" autocomplete =" new-password"
5656 Class =" pb-2" Margin =" Margin.Dense" Variant =" Variant.Outlined" Placeholder =" Confirm Password" InputType =" InputType.Password" For =" () => Input.ConfirmPassword" />
5757
58+ <MudStack Row =" true" Justify =" Justify.Center" >
59+ <MudStaticRadioGroup @bind-Value =" Input.UserType" For =" () => Input.UserType" Color =" Color.Primary" >
60+ <MudStaticRadio Value =" UserType.Individual" Label =" Individual" Class =" mb-2" />
61+ <MudStaticRadio Value =" UserType.Corporation" Label =" Corporation" Class =" mb-2" />
62+ </MudStaticRadioGroup >
63+ </MudStack >
64+
5865 <MudStaticButton Class =" mt-1 mb-4" FormAction =" FormAction.Submit" Color =" Color.Primary" Variant =" Variant.Filled" FullWidth =" true" >Register</MudStaticButton >
5966
6067 <MudStack Row =" true" AlignItems =" AlignItems.Center" Justify =" Justify.Center" Spacing =" 2" >
161168 [Display (Name = " Confirm password" )]
162169 [Compare (" Password" , ErrorMessage = " The password and confirmation password do not match." )]
163170 public string ConfirmPassword { get ; set ; } = " " ;
171+
172+ public UserType UserType { get ; set ; } = UserType .Individual ;
173+ }
174+
175+ private enum UserType
176+ {
177+ Individual ,
178+ Corporation
164179 }
165180}
Original file line number Diff line number Diff line change 2626
2727 private IComponentRenderMode ? RenderModeForPage => HttpContext .Request .Path .StartsWithSegments (" /Account" )
2828 ? null
29- : InteractiveAuto ;
29+ : InteractiveWebAssembly ;
3030}
You can’t perform that action at this time.
0 commit comments