Definition
Assembly: CloudNimble.BlazorEssentials.dll Namespace: CloudNimble.BlazorEssentials.Navigation Inheritance: CloudNimble.BlazorEssentials.InterfaceElementSyntax
Summary
Defines an app navigation structure suitable for binding to navigation menus.Constructors
.ctor
Syntax
.ctor
Creates a new instance with the minimum-required items to render a Blazor NavLink.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
url | string | A string corresponding to the route for this NavigationItem. |
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
url | string | A string corresponding to the route for this NavigationItem. |
category | string | A string representing the parent category for this NavigationItem. Can be useful for grouping |
| NavigationItemNavigationItems</see> into caregories for display. |
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
url | string | A string corresponding to the route for this NavigationItem. |
category | string | A string representing the parent category for this NavigationItem. Can be useful for grouping |
| NavigationItemNavigationItems</see> into caregories for display. | ||
isVisible | bool | Specifies whether or not this NavigationItem is visible on the NavBar. |
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
category | string | A string representing the parent category for this NavigationItem. Can be useful for grouping |
| NavigationItemNavigationItems</see> into caregories for display. | ||
isVisible | bool | Specifies whether or not this NavigationItem is visible on the NavBar. |
children | System.Collections.Generic.List<CloudNimble.BlazorEssentials.Navigation.NavigationItem> | A List`1 containing nodes to render underneath this one. |
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
url | string | A string corresponding to the route for this NavigationItem. |
category | string | A string representing the parent category for this NavigationItem. Can be useful for grouping |
| NavigationItemNavigationItems</see> into caregories for display. | ||
isVisible | bool | Specifies whether or not this NavigationItem is visible on the NavBar. |
pageTitle | string | A string representing the text that can be displayed as a page header. |
pageIcon | string | A string representing the CSS class(es) for the icon that can be displayed next to the NavigationItem.PageTitle in a page header. |
.ctor
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
text | string | A string representing the text that will be displayed in the NavBar. |
icon | string | A string representing the CSS class(es) for the icon that can be displayed next to the InterfaceElement.DisplayText. |
url | string | A string corresponding to the route for this NavigationItem. |
category | string | A string representing the parent category for this NavigationItem. Can be useful for grouping |
| NavigationItemNavigationItems</see> into caregories for display. | ||
isVisible | bool | Specifies whether or not this NavigationItem is visible on the NavBar. |
pageTitle | string | A string representing the text that can be displayed as a page header. |
pageIcon | string | A string representing the CSS class(es) for the icon that can be displayed next to the NavigationItem.PageTitle in a page header. |
roles | string | - |
allowAnonymous | bool | - |
.ctor Inherited
Inherited from
CloudNimble.BlazorEssentials.InterfaceElementSyntax
.ctor Inherited
Inherited from
CloudNimble.BlazorEssentials.InterfaceElementSyntax
Parameters
| Name | Type | Description |
|---|---|---|
displayText | string | - |
iconClass | string | - |
cssClass | string | - |
.ctor Inherited
Inherited from
objectSyntax
Properties
AccessibilityText
Test to be used for screen readers when this item is rendered.Syntax
Property Value
Type:string
AllowAnonymous
A Boolean specifying whether or not this NavigationItem is visible when a user is not logged in.Syntax
Property Value
Type:bool
Category
A string representing the parent category for this NavigationItem. Can be left blank, but useful for grouping NavigationItemNavigationItems</see> into caregories for display.Syntax
Property Value
Type:string
Children
Syntax
Property Value
Type:System.Collections.Generic.List<CloudNimble.BlazorEssentials.Navigation.NavigationItem>
CssClass Inherited
Inherited from
CloudNimble.BlazorEssentials.InterfaceElementSyntax
Property Value
Type:string
DisplayText Inherited
Inherited from
CloudNimble.BlazorEssentials.InterfaceElementSyntax
Property Value
Type:string
IconClass Inherited
Inherited from
CloudNimble.BlazorEssentials.InterfaceElementSyntax
Property Value
Type:string
IsVisible
Specifies whether or not this NavigationItem is visible on the NavBar. Defaults to True.Syntax
Property Value
Type:bool
PageIcon
A string representing the CSS class(es) for the icon that can be displayed next to the NavigationItem.PageTitle in a page header.Syntax
Property Value
Type:string
PageTitle
A string representing the text that can be displayed as a page header.Syntax
Property Value
Type:string
Parameters
Allows you to set parameters specific to the page that you do NOT want to pass through the Routing system.Syntax
Property Value
Type:dynamic
Remarks
Accessible through AppStateBase.CurrentNavItem.Roles
A HashSet`1 of roles that this NavigationItem is visible to.Syntax
Property Value
Type:System.Collections.Generic.HashSet<string>
Url
A string corresponding to the route for this NavigationItem.Syntax
Property Value
Type:string
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
IsVisibleToUser
Returns a boolean indicating whether or not the NavItem is available to any of the Roles the claimsPrincipal is in.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
claimsPrincipal | System.Security.Claims.ClaimsPrincipal | - |
Returns
Type:bool
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?