Skip to main content

NavItem

NavItem in ViewUtils.NavItems and ViewUtils.NavItemsMap

Assembly: ServiceStack.Interfaces.dll​
View Source​
Declaration
public class NavItem : IMeta

Properties​

Label​

Link Label

View Source​
Declaration
public string Label { get; set; }

Href​

Link href

View Source​
Declaration
public string Href { get; set; }

Exact​

Whether NavItem should only be considered active when paths are an exact match otherwise checks if ActivePath starts with Path

View Source​
Declaration
public bool? Exact { get; set; }

Id​

Emit id="{Id}"

View Source​
Declaration
public string Id { get; set; }

ClassName​

Override class="{Class}"

View Source​
Declaration
public string ClassName { get; set; }

IconClass​

Icon class (if any)

View Source​
Declaration
public string IconClass { get; set; }

IconSrc​

Icon src (if any)

View Source​
Declaration
public string IconSrc { get; set; }

Show​

Only show if NavOptions.Attributes.Contains(Show)

View Source​
Declaration
public string Show { get; set; }

Hide​

Do not show if NavOptions.Attributes.Contains(Hide)

View Source​
Declaration
public string Hide { get; set; }

Children​

Sub Menu Child NavItems

View Source​
Declaration
public List<NavItem> Children { get; set; }

Meta​

Attach additional custom metadata to this NavItem

View Source​
Declaration
public Dictionary<string, string> Meta { get; set; }

Implements​