HtmlForgeX

API Reference

Class

UserMenuItem

Namespace HtmlForgeX
Assembly HtmlForgeX

Represents a user menu item

Inheritance

  • Object
  • UserMenuItem

Constructors

Methods

public UserMenuItem AsDisabled() #
Returns: UserMenuItem

Mark as disabled

public UserMenuItem WithBadge(String text, Nullable<TablerBadgeColor> color = null) #
Returns: UserMenuItem

Fluent configuration for badge

Parameters

text System.String requiredposition: 0
color System.Nullable{HtmlForgeX.TablerBadgeColor} = null optionalposition: 1
public UserMenuItem WithIcon(TablerIconType icon) #
Returns: UserMenuItem

Fluent configuration for icon

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0

Properties

public String Text { get; set; } #

Text of the menu item

public String Href { get; set; } #

Link URL

public Nullable<TablerIconType> Icon { get; set; } #

Optional icon

public String Badge { get; set; } #

Optional badge text

public Nullable<TablerBadgeColor> BadgeColor { get; set; } #

Badge color

public Boolean Disabled { get; set; } #

Whether the item is disabled

public Boolean IsDivider { get; set; } #

Whether this is a divider

public Boolean IsHeader { get; set; } #

Whether this is a header