|
5 | 5 | <h4>@Localizer["Description"]</h4> |
6 | 6 |
|
7 | 7 | <DemoBlock Title="@Localizer["DateTimePickerTitle"]" Introduction="@Localizer["DateTimePickerIntro"]" Name="DateTimePicker"> |
8 | | - <DateTimePicker ViewMode="DatePickerViewMode.DateTime" TimeFormat="hh\:mm" |
| 8 | + <section ignore class="row g-3 mb-3"> |
| 9 | + <div class="col-12 col-sm-6"> |
| 10 | + <BootstrapInputGroup> |
| 11 | + <BootstrapInputGroupLabel DisplayText="IsButton"></BootstrapInputGroupLabel> |
| 12 | + <Switch @bind-Value="_isButton"></Switch> |
| 13 | + </BootstrapInputGroup> |
| 14 | + </div> |
| 15 | + </section> |
| 16 | + <DateTimePicker ViewMode="DatePickerViewMode.DateTime" TimeFormat="hh\:mm" IsButton="_isButton" |
9 | 17 | Value="@DateTimePickerValue" OnValueChanged="@TimePickerValueChanged"> |
10 | 18 | <TimePickerSetting ShowClockScale="true" IsAutoSwitch="false" /> |
11 | 19 | </DateTimePicker> |
|
16 | 24 | <section ignore> |
17 | 25 | <GroupBox Title="@Localizer["Feature"]"> |
18 | 26 | <div class="row g-3 form-inline text-end"> |
19 | | - <div class="col-12 col-sm-3"> |
20 | | - <Switch DisplayText="@Localizer["FeatureShowLunar"]" ShowLabel="true" @bind-Value="_showLunar" /> |
| 27 | + <div class="col-12 col-sm-6 col-lg-3"> |
| 28 | + <BootstrapInputGroup> |
| 29 | + <BootstrapInputGroupLabel DisplayText="@Localizer["FeatureShowLunar"]"></BootstrapInputGroupLabel> |
| 30 | + <Switch @bind-Value="_showLunar" /> |
| 31 | + </BootstrapInputGroup> |
21 | 32 | </div> |
22 | | - <div class="col-12 col-sm-3"> |
23 | | - <Switch DisplayText="@Localizer["FeatureShowSolarTerm"]" ShowLabel="true" @bind-Value="_showSolarTerm" /> |
| 33 | + <div class="col-12 col-sm-6 col-lg-3"> |
| 34 | + <BootstrapInputGroup> |
| 35 | + <BootstrapInputGroupLabel DisplayText="@Localizer["FeatureShowSolarTerm"]"></BootstrapInputGroupLabel> |
| 36 | + <Switch @bind-Value="_showSolarTerm" /> |
| 37 | + </BootstrapInputGroup> |
24 | 38 | </div> |
25 | | - <div class="col-12 col-sm-3"> |
26 | | - <Switch DisplayText="@Localizer["FeatureShowFestivals"]" ShowLabel="true" @bind-Value="_showFestivals" /> |
| 39 | + <div class="col-12 col-sm-6 col-lg-3"> |
| 40 | + <BootstrapInputGroup> |
| 41 | + <BootstrapInputGroupLabel DisplayText="@Localizer["FeatureShowFestivals"]"></BootstrapInputGroupLabel> |
| 42 | + <Switch @bind-Value="_showFestivals" /> |
| 43 | + </BootstrapInputGroup> |
27 | 44 | </div> |
28 | | - <div class="col-12 col-sm-3"> |
29 | | - <Switch DisplayText="@Localizer["FeatureShowHolidays"]" ShowLabel="true" @bind-Value="_showHolidays" /> |
| 45 | + <div class="col-12 col-sm-6 col-lg-3"> |
| 46 | + <BootstrapInputGroup> |
| 47 | + <BootstrapInputGroupLabel DisplayText="@Localizer["FeatureShowHolidays"]"></BootstrapInputGroupLabel> |
| 48 | + <Switch @bind-Value="_showHolidays" /> |
| 49 | + </BootstrapInputGroup> |
30 | 50 | </div> |
31 | 51 | </div> |
32 | 52 | </GroupBox> |
|
0 commit comments