|
13 | 13 | <DemoBlock Title="@Localizer["MenusTopBarTitle"]" |
14 | 14 | Introduction="@Localizer["MenusTopBarIntro"]" |
15 | 15 | Name="TopBar"> |
16 | | - <Menu Items="@Items" DisableNavigation="true" OnClick="@OnClickMenu" /> |
17 | | - <ConsoleLogger @ref="Logger" /> |
| 16 | + <Menu Items="@Items" DisableNavigation="true" OnClick="@OnClickMenu"></Menu> |
| 17 | + <ConsoleLogger @ref="Logger"></ConsoleLogger> |
18 | 18 | </DemoBlock> |
19 | 19 |
|
20 | 20 | <DemoBlock Title="@Localizer["MenusBottomBarTitle"]" |
|
25 | 25 | </Tips> |
26 | 26 | <div style="height: 120px; position: relative;"> |
27 | 27 | <div>@ClickedMenuItemText</div> |
28 | | - <Menu Items="@BottomItems" DisableNavigation="true" OnClick="@OnClickBottomMenu" IsBottom="true" /> |
| 28 | + <Menu Items="@BottomItems" DisableNavigation="true" OnClick="@OnClickBottomMenu" IsBottom="true"></Menu> |
29 | 29 | </div> |
30 | 30 | </DemoBlock> |
31 | 31 |
|
32 | 32 | <DemoBlock Title="@Localizer["MenusIconTopTitle"]" |
33 | 33 | Introduction="@Localizer["MenusIconTopIntro"]" |
34 | 34 | Name="IconTop"> |
35 | | - <Menu Items="@IconItems" DisableNavigation="true" /> |
| 35 | + <Menu Items="@IconItems" DisableNavigation="true"></Menu> |
36 | 36 | </DemoBlock> |
37 | 37 |
|
38 | 38 | <DemoBlock Title="@Localizer["MenusLeftRightLayoutTitle"]" |
39 | 39 | Introduction="@Localizer["MenusLeftRightLayoutIntro"]" |
40 | 40 | Name="LeftRightLayout"> |
41 | | - <Menu Items="@SideMenuItems" DisableNavigation="true" IsVertical="true" OnClick="@OnClickSideMenu" style="width:220px; border-right: 1px solid #e6e6e6; padding-right: 4px;" /> |
42 | | - <ConsoleLogger @ref="SideLogger" /> |
| 41 | + <Menu Items="@SideMenuItems" DisableNavigation="true" IsVertical="true" OnClick="@OnClickSideMenu" style="width:220px; border-right: 1px solid #e6e6e6; padding-right: 4px;"></Menu> |
| 42 | + <ConsoleLogger @ref="SideLogger"></ConsoleLogger> |
43 | 43 | </DemoBlock> |
44 | 44 |
|
45 | 45 | <DemoBlock Title="@Localizer["MenusIconLeftTitle"]" |
|
51 | 51 | <DemoBlock Title="@Localizer["MenusAccordionTitle"]" |
52 | 52 | Introduction="@Localizer["MenusAccordionIntro"]" |
53 | 53 | Name="Accordion"> |
54 | | - <Menu Items="@IconSideMenuItems" DisableNavigation="true" IsVertical="true" IsAccordion="true" style="border-right: 1px solid #e6e6e6; width:220px;" /> |
| 54 | + <Menu Items="@IconSideMenuItems" DisableNavigation="true" IsVertical="true" IsAccordion="true" style="border-right: 1px solid #e6e6e6; width:220px;"></Menu> |
55 | 55 | </DemoBlock> |
56 | 56 |
|
57 | 57 | <DemoBlock Title="@Localizer["MenusClickShrinkTitle"]" |
|
91 | 91 | <DemoBlock Title="@Localizer["MenusWidgetTitle"]" |
92 | 92 | Introduction="@Localizer["MenusWidgetIntro"]" |
93 | 93 | Name="Widget"> |
94 | | - <Menu Items="@WidgetIconSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;" /> |
| 94 | + <Menu Items="@WidgetIconSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;"></Menu> |
95 | 95 | </DemoBlock> |
96 | 96 |
|
97 | 97 | <DemoBlock Title="@Localizer["MenusCustomNodeTitle"]" |
98 | 98 | Introduction="@Localizer["MenusCustomNodeIntro"]" |
99 | 99 | Name="CustomNode"> |
100 | | - <p>@((MarkupString)Localizer["MenusCustomNodeDescription"].Value)</p> |
101 | | - <Menu Items="@CollapsedIconSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;" /> |
| 100 | + <section ignore>@((MarkupString)Localizer["MenusCustomNodeDescription"].Value)</section> |
| 101 | + <Menu Items="@CollapsedIconSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;"></Menu> |
102 | 102 | </DemoBlock> |
103 | 103 |
|
104 | 104 | <DemoBlock Title="@Localizer["MenusDynamicTitle"]" |
105 | 105 | Introduction="@Localizer["MenusDynamicIntro"]" |
106 | 106 | Name="Dynamic"> |
107 | | - <Menu Items="@DynamicSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;" class="mb-3" /> |
108 | | - <Button Text="@Localizer["MenusDynamicButton1Text"]" OnClick="UpdateMenu" /> |
109 | | - <Button Text="@Localizer["MenusDynamicButton2Text"]" OnClick="ResetMenu" /> |
| 107 | + <Menu Items="@DynamicSideMenuItems" DisableNavigation="true" IsVertical="true" style="border-right: 1px solid #e6e6e6; width:220px;" class="mb-3"></Menu> |
| 108 | + <Button Text="@Localizer["MenusDynamicButton1Text"]" OnClick="UpdateMenu"></Button> |
| 109 | + <Button Text="@Localizer["MenusDynamicButton2Text"]" OnClick="ResetMenu"></Button> |
110 | 110 | </DemoBlock> |
111 | 111 |
|
112 | 112 | <DemoBlock Title="@Localizer["MenusPartDisableTitle"]" |
113 | 113 | Introduction="@Localizer["MenusPartDisableIntro"]" |
114 | 114 | Name="PartDisable"> |
115 | | - <p>@((MarkupString)Localizer["MenusPartDisableDescription1"].Value)</p> |
| 115 | + <section ignore>@((MarkupString)Localizer["MenusPartDisableDescription1"].Value)</section> |
116 | 116 |
|
117 | | - <Menu Items="@DisabledMenuItems" DisableNavigation="true" OnClick="@OnClick2" /> |
118 | | - <p class="mt-3"><b>@Localizer["MenusPartDisableDescription2"]</b></p> |
| 117 | + <Menu Items="@DisabledMenuItems" DisableNavigation="true"></Menu> |
| 118 | + <section ignore class="mt-3"><b>@Localizer["MenusPartDisableDescription2"]</b></section> |
119 | 119 | <div style="width:220px; border-right: 1px solid #e6e6e6;"> |
120 | | - <Menu Items="@DisabledMenuItems" DisableNavigation="true" IsVertical="true" OnClick="@OnClick2" /> |
| 120 | + <Menu Items="@DisabledMenuItems" DisableNavigation="true" IsVertical="true"></Menu> |
121 | 121 | </div> |
122 | | - |
123 | | - <ConsoleLogger @ref="Logger" /> |
124 | 122 | </DemoBlock> |
125 | 123 |
|
126 | 124 | <AttributeTable Items="@GetAttributes()" /> |
0 commit comments