|
13 | 13 | <p class="d-flex flex-wrap drawer-demo">
|
14 | 14 | <RadioList TValue="SelectedItem" Items="@DrawerDirection" OnSelectedChanged="@OnStateChanged" />
|
15 | 15 | </p>
|
| 16 | + <button type="button" class="btn btn-primary" @onclick="@(e => IsOpen = true)">@Localizer["Open"]</button> |
16 | 17 | </section>
|
17 |
| - <button type="button" class="btn btn-primary" @onclick="@(e => IsOpen = true)">@Localizer["Open"]</button> |
18 | 18 |
|
19 | 19 | <Drawer Placement="@DrawerAlign" IsOpen="@IsOpen" AllowResize="true">
|
20 | 20 | <div class="d-flex justify-content-center align-items-center flex-column" style="height: 290px;">
|
|
25 | 25 | </DemoBlock>
|
26 | 26 |
|
27 | 27 | <DemoBlock Title="@Localizer["PlacementTitle"]" Introduction="@Localizer["PlacementIntro"]" Name="Placement">
|
28 |
| - <button type="button" class="btn btn-primary" @onclick="@OpenDrawer">@Localizer["Open"]</button> |
| 28 | + <section ignore> |
| 29 | + <button type="button" class="btn btn-primary" @onclick="@OpenDrawer">@Localizer["Open"]</button> |
| 30 | + </section> |
29 | 31 | <Drawer Placement="Placement.Left" @bind-IsOpen="@IsBackdropOpen" IsBackdrop="true">
|
30 | 32 | <p class="mt-3 text-center">
|
31 | 33 | @Localizer["PlacementContent"]
|
32 | 34 | </p>
|
33 | 35 | </Drawer>
|
34 | 36 | </DemoBlock>
|
35 | 37 |
|
36 |
| -<DemoBlock Title="@Localizer["NoBackdropTitle"]" Introduction="@Localizer["NoBackdropIntro"]"> |
37 |
| - <button type="button" class="btn btn-primary" @onclick="@OpenNoBackdropDrawer">@Localizer["Open"]</button> |
| 38 | +<DemoBlock Title="@Localizer["NoBackdropTitle"]" Introduction="@Localizer["NoBackdropIntro"]" Name="IsOpen"> |
| 39 | + <section ignore> |
| 40 | + <button type="button" class="btn btn-primary" @onclick="@OpenNoBackdropDrawer">@Localizer["Open"]</button> |
| 41 | + </section> |
38 | 42 | <Drawer Placement="Placement.Left" @bind-IsOpen="@IsShowBackdropOpen" ShowBackdrop="false">
|
39 | 43 | <div class="d-flex justify-content-center align-items-center flex-column" style="height: 290px;">
|
40 | 44 | <p>@Localizer["Content"]</p>
|
|
43 | 47 | </Drawer>
|
44 | 48 | </DemoBlock>
|
45 | 49 |
|
46 |
| -<DemoBlock Title="@Localizer["DrawerServiceTitle"]" Introduction="@Localizer["DrawerServiceIntro"]"> |
| 50 | +<DemoBlock Title="@Localizer["DrawerServiceTitle"]" Introduction="@Localizer["DrawerServiceIntro"]" Name="DrawerService"> |
47 | 51 | <Button OnClickWithoutRender="@DrawerServiceShow" Text="@Localizer["Open"]"></Button>
|
48 | 52 | </DemoBlock>
|
49 | 53 |
|
|
0 commit comments