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

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this Sidebar.
DatanullSidebarInfo

Data for generating sidebar dynamically.
Scrollabletruebool

If true, the sidebar will have vertical scrollbar.
Visiblefalsebool

Specifies the sidebar visibility state.

SidebarContent

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarContent.

SidebarBrand

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarBrand.

SidebarNavigation

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarNavigation.

SidebarLabel

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarLabel.

SidebarItem

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarItem.

SidebarLink

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarLink.
MatchAllMatch

URL matching behavior for a link.
Possible values:PrefixAll
TargetDefaultTarget

The target attribute specifies where to open the linked document.
Title—string

Specify extra information about the element.
To—string

Page address.
Visiblefalsebool

Specifies the visibility of the link.

SidebarSubItem

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarSubItem.
Visiblefalsebool

Specifies the visibility of the subitem.

SidebarFooter

ParameterDefaultType
ChildContentnullRenderFragment

Specifies the content to be rendered inside this SidebarFooter.

Events

SidebarLink

EventType
ClickEventCallback

An event that is raised when the link is clicked.
CustomMatchFunc<string, bool>

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

An event that is raised when the link is toggled.

Methods

Sidebar

MethodReturnParameters
Closevoid—

Closes the sidebar.
Openvoid—

Opens the sidebar.
Togglevoid—

Toggles the sidebar open or close state.

SidebarSubItem

MethodReturnParameters
Togglevoidbool? visible

Toggles the visibility of subitem.

SidebarInfo

Properties

PropertyType
BrandSidebarBrandInfo

Defines the brand displayed in the sidebar header.
ItemsList<SidebarItemInfo>

Defines the first-level dynamic sidebar items.

SidebarBrandInfo

Properties

PropertyType
Textstring

Defines the brand text.
Tostring

Defines the brand URL.

SidebarItemInfo

Properties

PropertyType
Tooltipstring

Defines the sidebar link tooltip.
Textstring

Defines the sidebar link text.
Tostring

Defines the sidebar link URL.
Iconobject

Defines the sidebar link icon.
Visiblebool

Specifies whether the item and its nested items are visible.
SubItemsList<SidebarItemInfo>

Defines the nested sidebar items.
On this page