File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed
src/BootstrapBlazor.Server/Components/Samples Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 99 <p >@( (MarkupString )Localizer [" OtpInputsTips" ].Value ) </p >
1010</Tips >
1111
12- <DemoBlock Title =" @Localizer[" OtpInputsTopBarTitle " ]"
13- Introduction =" @Localizer[" MenusTopBarIntro " ]"
14- Name =" TopBar" >
12+ <DemoBlock Title =" @Localizer[" OtpInputsNormalTitle " ]"
13+ Introduction =" @Localizer[" OtpInputsNormalIntro " ]"
14+ Name =" Normal" >
15+ <OtpInput Value =" @_value" ></OtpInput >
16+ </DemoBlock >
17+
18+ <DemoBlock Title =" @Localizer[" OtpInputsReadonlyTitle " ]"
19+ Introduction =" @Localizer[" OtpInputsReadonlyIntro " ]"
20+ Name =" Readonly" >
21+ <OtpInput Value =" @_value" IsReadonly =" true" ></OtpInput >
22+ </DemoBlock >
23+
24+ <DemoBlock Title =" @Localizer[" OtpInputsDisabledTitle " ]"
25+ Introduction =" @Localizer[" OtpInputsDisabledIntro " ]"
26+ Name =" Disabled" >
27+ <OtpInput Value =" @_value" IsDisabled =" true" ></OtpInput >
28+ </DemoBlock >
29+
30+ <DemoBlock Title =" @Localizer[" OtpInputsTypeTitle " ]"
31+ Introduction =" @Localizer[" OtpInputsTypeIntro " ]"
32+ Name =" Type" >
33+ <div class =" row g-3" >
34+ <div class =" col-12" ><Select @bind-Value =" _otpInputType" ></Select ></div >
35+ <div class =" col-12" ><OtpInput Value =" @_value" Type =" _otpInputType" ></OtpInput ></div >
36+ </div >
37+ </DemoBlock >
38+
39+ <DemoBlock Title =" @Localizer[" OtpInputsTypeTitle " ]"
40+ Introduction =" @Localizer[" OtpInputsTypeIntro " ]"
41+ Name =" Type" >
42+ <div class =" row g-3" >
43+ <div class =" col-12" ><Select @bind-Value =" _otpInputType" ></Select ></div >
44+ <div class =" col-12" ><OtpInput Value =" @_value" Type =" _otpInputType" ></OtpInput ></div >
45+ </div >
1546</DemoBlock >
Original file line number Diff line number Diff line change @@ -10,5 +10,7 @@ namespace BootstrapBlazor.Server.Components.Samples;
1010/// </summary>
1111public partial class OtpInputs
1212{
13+ private string _value = "818924" ;
1314
15+ private OtpInputType _otpInputType ;
1416}
You can’t perform that action at this time.
0 commit comments