HtmlForgeX

API Reference

Class

TablerNavbarActions

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Tabler navbar actions component for action buttons in the navbar

Inheritance

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public TablerNavbarActions() #

Initializes a new instance of the TablerNavbarActions class

Methods

public TablerNavbarActions AddAction(Action<NavbarAction> configure) #
Returns: TablerNavbarActions

Adds a button with configuration

Parameters

configure System.Action{HtmlForgeX.NavbarAction} requiredposition: 0
AddButton 2 overloads
public TablerNavbarActions AddButton(String text, String href = "#") #
Returns: TablerNavbarActions

Adds a button action

Parameters

text System.String requiredposition: 0
href System.String = "#" optionalposition: 1
public TablerNavbarActions AddButton(String text, TablerIconType icon, String href = "#") #
Returns: TablerNavbarActions

Adds a button with icon

Parameters

text System.String requiredposition: 0
icon HtmlForgeX.TablerIconType requiredposition: 1
href System.String = "#" optionalposition: 2
public TablerNavbarActions AddDownloadButton(String downloadUrl, String text = "Download") #
Returns: TablerNavbarActions

Adds a download button

Parameters

downloadUrl System.String requiredposition: 0
text System.String = "Download" optionalposition: 1
public TablerNavbarActions AddGitHubButton(String repoUrl, String text = "Source code") #
Returns: TablerNavbarActions

Adds a GitHub button

Parameters

repoUrl System.String requiredposition: 0
text System.String = "Source code" optionalposition: 1
public TablerNavbarActions AddIconButton(TablerIconType icon, String href = "#", String tooltip = null) #
Returns: TablerNavbarActions

Adds an icon-only button

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
href System.String = "#" optionalposition: 1
tooltip System.String = null optionalposition: 2
public TablerNavbarActions AddSeparator() #
Returns: TablerNavbarActions

Adds a separator between actions

public TablerNavbarActions AddSponsorButton(String sponsorUrl, String text = "Sponsor") #
Returns: TablerNavbarActions

Adds a sponsor/donate button

Parameters

sponsorUrl System.String requiredposition: 0
text System.String = "Sponsor" optionalposition: 1
public TablerNavbarActions Density(ControlBarDensity density) #
Returns: TablerNavbarActions

Sets the density of the navbar action rail.

Parameters

density HtmlForgeX.ControlBarDensity requiredposition: 0
RegisterLibraries() #

Registers the required libraries for this component

public TablerNavbarActions ShowOnMobile(Boolean show = true) #
Returns: TablerNavbarActions

Sets whether to show on mobile devices

Parameters

show System.Boolean = true optionalposition: 0
public override String ToString() #
Returns: String

Renders the navbar actions to HTML string

public TablerNavbarActions WithLayout(TablerNavbarActionLayout layout) #
Returns: TablerNavbarActions

Sets the layout of the action buttons

Parameters

layout HtmlForgeX.TablerNavbarActionLayout requiredposition: 0