Skip to content

Commit 3299b58

Browse files
committed
Sidebar and Sidebar2 updates
1 parent 9414a3d commit 3299b58

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

BlazorBootstrap.Demo.RCL/Components/Pages/Sidebar2/Sidebar2_Demo_10_Company_Logo_FullWidth.razor

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,24 @@
2020
{
2121
navItems = new List<NavItem>
2222
{
23-
new NavItem { Href = "/getting-started", IconName = IconName.HouseDoorFill, Text = "Getting Started"},
24-
new NavItem { Href = "/alerts", IconName = IconName.CheckCircleFill, Text = "Alerts"},
25-
new NavItem { Href = "/autocomplete", IconName = IconName.InputCursorText, Text = "Auto Complete"},
26-
new NavItem { Href = "/breadcrumb", IconName = IconName.SegmentedNav, Text = "Breadcrumb"},
27-
new NavItem { Href = "/sidebar", IconName = IconName.LayoutSidebarInset, Text = "Sidebar"},
23+
new NavItem { Id = "1", Href = "/getting-started", IconName = IconName.HouseDoorFill, Text = "Getting Started"},
24+
25+
new NavItem { Id = "2", IconName = IconName.LayoutSidebarInset, Text = "Content" },
26+
new NavItem { Id = "3", Href = "/icons", IconName = IconName.PersonSquare, Text = "Icons", ParentId="2"},
27+
28+
new NavItem { Id = "4", IconName = IconName.ExclamationTriangleFill, Text = "Components" },
29+
new NavItem { Id = "5", Href = "/alerts", IconName = IconName.CheckCircleFill, Text = "Alerts", ParentId="4"},
30+
new NavItem { Id = "6", Href = "/breadcrumb", IconName = IconName.SegmentedNav, Text = "Breadcrumb", ParentId="4"},
31+
32+
new NavItem { Id = "7", IconName = IconName.ListNested, Text = "Sidebar 2", ParentId="4"},
33+
new NavItem { Id = "701", Href = "/sidebar2", IconName = IconName.Dash, Text = "How to use", ParentId="7"},
34+
new NavItem { Id = "702", Href = "/sidebar2-examples", IconName = IconName.Dash, Text = "Examples", ParentId="7"},
35+
36+
new NavItem { Id = "8", IconName = IconName.WindowPlus, Text = "Forms" },
37+
new NavItem { Id = "9", Href = "/autocomplete", IconName = IconName.InputCursorText, Text = "Auto Complete", ParentId="8"},
38+
new NavItem { Id = "10", Href = "/currency-input", IconName = IconName.CurrencyDollar, Text = "Currency Input", ParentId="8"},
39+
new NavItem { Id = "11", Href = "/number-input", IconName = IconName.InputCursor, Text = "Number Input", ParentId="8"},
40+
new NavItem { Id = "12", Href = "/switch", IconName = IconName.ToggleOn, Text = "Switch", ParentId="8"},
2841
};
2942
return navItems;
3043
}

docs/docs/05-components/sidebar.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Use the Blazor Bootstrap Sidebar component to show consistent cross-browser, res
2727
| Href | `string?` | `string.Empty` | | Gets or sets the Href. | 3.0.0 |
2828
| IconName | `IconName` | `IconName.None` | | Gets or sets the IconName. | 1.4.0 |
2929
| ImageSrc | `string?` | null | | Gets or sets the sidebar logo. | 1.4.0 |
30+
| ImageWidth | float | 0 | ✔️ | Gets or sets the sidebar logo width. You can change the unit by setting `WidthUnit`. | 3.4.0 |
3031
| Title | `string?` | null | ✔️ | Gets or sets the sidebar title. | 1.4.0 |
3132
| Width | float | 270 | | Gets or sets the sidebar width. | 3.0.0 |
3233
| WidthUnit | `Unit` | `Unit.Px` | | Gets or sets the sidebar width unit. | 3.0.0 |

docs/docs/05-components/sidebar2.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Use the Blazor Bootstrap Sidebar2 component to display consistent, cross-browser
2727
| Href | `string?` | `string.Empty` | | Gets or sets the Href. | 3.0.0 |
2828
| IconName | `IconName` | `IconName.None` | | Gets or sets the IconName. | 2.1.0 |
2929
| ImageSrc | `string?` | null | | Gets or sets the logo. | 2.1.0 |
30+
| ImageWidth | float | 0 | ✔️ | Gets or sets the sidebar logo width. You can change the unit by setting `WidthUnit`. | 3.4.0 |
3031
| Title | `string?` | null | ✔️ | Gets or sets the title. | 2.1.0 |
3132
| Width | float | 270 | | Gets or sets the sidebar width. | 3.0.0 |
3233
| WidthUnit | `Unit` | `Unit.Px` | | Gets or sets the sidebar width unit. | 3.0.0 |

0 commit comments

Comments
 (0)