HtmlForgeX

API Reference

Class

TablerSidebarLink

Namespace HtmlForgeX
Assembly HtmlForgeX
Attributes
EditorBrowsable(2)

Sidebar link item

Inheritance

Constructors

public TablerSidebarLink(String text, String href = null) #

Initializes a new instance of the TablerSidebarLink class

Parameters

text System.String requiredposition: 0
Link text
href System.String = null optionalposition: 1
Link href URL (optional)

Methods

public override String Render() #
Returns: String

Renders the sidebar link to HTML string

Returns

HTML representation of the sidebar link

Properties

public String Text { get; } #

Gets the link text

public String Href { get; } #

Gets the link href URL

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

Gets or sets the optional link icon

public String Badge { get; set; } #

Gets or sets the optional badge text

public Boolean Active { get; set; } #

Gets or sets whether the link is active

public Boolean Disabled { get; set; } #

Gets or sets whether the link is disabled