API Reference
Class
NavbarAction
Represents a navbar action
Inheritance
- Object
- NavbarAction
Constructors
public NavbarAction() #Methods
public NavbarAction WithBadge(String text, Nullable<TablerBadgeColor> color = null) #Returns:
NavbarActionAdds a badge with optional color to the action.
Parameters
- text System.String
- color System.Nullable{HtmlForgeX.TablerBadgeColor} = null
public NavbarAction WithIcon(TablerIconType icon, Nullable<TablerColor> color = null) #Returns:
NavbarActionSets the icon and optional color for the action.
Parameters
- icon HtmlForgeX.TablerIconType
- color System.Nullable{HtmlForgeX.TablerColor} = null
public NavbarAction WithSize(TablerButtonSize size) #Returns:
NavbarActionSets the button size.
Parameters
- size HtmlForgeX.TablerButtonSize
public NavbarAction WithTooltip(String tooltip) #Returns:
NavbarActionSets the tooltip text for icon-only buttons.
Parameters
- tooltip System.String
public NavbarAction WithVariant(TablerButtonVariant variant) #Returns:
NavbarActionSets the button variant.
Parameters
- variant HtmlForgeX.TablerButtonVariant
Inherited Methods
Properties
public Nullable<TablerColor> IconColor { get; set; } #Icon color
public TablerButtonVariant Variant { get; set; } #Button variant
public Boolean Disabled { get; set; } #Whether button is disabled
public Boolean Outline { get; set; } #Whether to use outline style
public String Tooltip { get; set; } #Tooltip text for icon-only buttons
public Nullable<TablerBadgeColor> BadgeColor { get; set; } #Badge color