HtmlForgeX

API Reference

Class

TablerSidebarDropdown

Namespace HtmlForgeX
Assembly HtmlForgeX
Attributes
EditorBrowsable(2)

Sidebar dropdown menu

Inheritance

Constructors

public TablerSidebarDropdown(String text) #

Initializes a new instance of the TablerSidebarDropdown class

Parameters

text System.String requiredposition: 0
Dropdown text

Methods

Item 2 overloads
public TablerSidebarDropdown Item(String text, String href = null) #
Returns: TablerSidebarDropdown

Adds an item to the dropdown menu

Parameters

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

Returns

This TablerSidebarDropdown instance for method chaining

public TablerSidebarDropdown Item(String text, String href, String badge) #
Returns: TablerSidebarDropdown

Adds an item with a badge to the dropdown menu

Parameters

text System.String requiredposition: 0
Item text
href System.String requiredposition: 1
Item href URL (optional)
badge System.String requiredposition: 2
Badge text

Returns

This TablerSidebarDropdown instance for method chaining

public override String Render() #
Returns: String

Renders the sidebar dropdown to HTML string

Returns

HTML representation of the sidebar dropdown

Properties

public String Text { get; } #

Gets the dropdown text

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

Gets or sets the optional dropdown icon

public Boolean Active { get; set; } #

Gets or sets whether the dropdown is active

public Boolean Expanded { get; set; } #

Gets or sets whether the dropdown is expanded