Blazorise Sidebar API

Review the components and data model used to build manual or dynamic sidebars.

For setup instructions and examples, see the Sidebar documentation.

API

Parameters

Sidebar

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this Sidebar.

RenderFragmentnull
Data

Data for generating sidebar dynamically.

SidebarInfonull
Scrollable

If true, the sidebar will have vertical scrollbar.

booltrue
Visible

Specifies the sidebar visibility state.

boolfalse

SidebarContent

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarContent.

RenderFragmentnull

SidebarBrand

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarBrand.

RenderFragmentnull

SidebarNavigation

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarNavigation.

RenderFragmentnull

SidebarLabel

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarLabel.

RenderFragmentnull

SidebarItem

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarItem.

RenderFragmentnull

SidebarLink

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarLink.

RenderFragmentnull
Match

URL matching behavior for a link.

Possible values:Prefix, All

MatchAll
Target

The target attribute specifies where to open the linked document.

TargetDefault
Title

Specify extra information about the element.

string
To

Page address.

string
Visible

Specifies the visibility of the link.

boolfalse

SidebarSubItem

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarSubItem.

RenderFragmentnull
Visible

Specifies the visibility of the subitem.

boolfalse

SidebarFooter

Parameter Description TypeDefault
ChildContent

Specifies the content to be rendered inside this SidebarFooter.

RenderFragmentnull

Events

SidebarLink

Event Description Type
Click

An event that is raised when the link is clicked.

EventCallback
CustomMatch

A callback function that is used to compare current uri with the user defined uri. If defined, the Match parameter will be ignored.

Func<string, bool>
Toggled

An event that is raised when the link is toggled.

EventCallback<bool>

Methods

Sidebar

Method DescriptionReturnParameters
Close Closes the sidebar. void
Open Opens the sidebar. void
Toggle Toggles the sidebar open or close state. void

SidebarSubItem

Method DescriptionReturnParameters
Toggle Toggles the visibility of subitem. voidbool? visible

SidebarInfo

Properties

Property Description Type
Brand Defines the brand displayed in the sidebar header. SidebarBrandInfo
Items Defines the first-level dynamic sidebar items. List<SidebarItemInfo>

SidebarBrandInfo

Properties

Property Description Type
Text Defines the brand text. string
To Defines the brand URL. string

SidebarItemInfo

Properties

Property Description Type
Tooltip Defines the sidebar link tooltip. string
Text Defines the sidebar link text. string
To Defines the sidebar link URL. string
Icon Defines the sidebar link icon. object
Visible Specifies whether the item and its nested items are visible. bool
SubItems Defines the nested sidebar items. List<SidebarItemInfo>
On this page