HtmlForgeX

API Reference

Class

TablerCloseButton

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Tabler close button component for dismissing content

Inheritance

Constructors

public TablerCloseButton() #

Initializes a new instance of the TablerCloseButton class

Methods

public TablerCloseButton AriaLabel(String label) #
Returns: TablerCloseButton

Set aria label for accessibility.

Parameters

label System.String requiredposition: 0
Value for the aria-label attribute.

Returns

The TablerCloseButton instance for chaining.

public TablerCloseButton Dismiss(String target) #
Returns: TablerCloseButton

Set what to dismiss (e.g., "dropdown", "modal", "alert").

Parameters

target System.String requiredposition: 0
Value for the data-bs-dismiss attribute.

Returns

The TablerCloseButton instance for chaining.

public TablerCloseButton MarginStart(String margin) #
Returns: TablerCloseButton

Set margin start.

Parameters

margin System.String requiredposition: 0
Margin value or auto.

Returns

The TablerCloseButton instance for chaining.

public TablerCloseButton Size(TablerCloseButtonSize size) #
Returns: TablerCloseButton

Set button size.

Parameters

size HtmlForgeX.TablerCloseButtonSize requiredposition: 0
Predefined button size.

Returns

The TablerCloseButton instance for chaining.

public override String ToString() #
Returns: String

Renders the close button to HTML string

Returns

HTML representation of the close button