HtmlForgeX

API Reference

Class

TablerTag

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a span element styled as a Tabler tag.

Inheritance

Constructors

public TablerTag(String text, Nullable<TablerColor> color = null) #

Initializes a new instance of the TablerTag class.

Parameters

text System.String requiredposition: 0
Text displayed inside the tag.
color System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
Optional background color.

Methods

public TablerTag Dismissable() #
Returns: TablerTag

Enables the dismiss icon inside the tag.

Returns

The current instance.

public TablerTag TagColor(TablerColor color) #
Returns: TablerTag

Sets the tag background color.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
Color to apply.

Returns

The current instance.

public TablerTag TagOutline(Boolean outline = true) #
Returns: TablerTag

Renders the tag with an outline style (no fill background).

Parameters

outline System.Boolean = true optionalposition: 0
public TablerTag TagRounded(Boolean rounded = true) #
Returns: TablerTag

Renders the tag with rounded (pill) shape.

Parameters

rounded System.Boolean = true optionalposition: 0
public TablerTag TagSize(TablerTagSize size) #
Returns: TablerTag

Sets the tag size.

Parameters

size HtmlForgeX.TablerTagSize requiredposition: 0
Desired size.

Returns

The current instance.

public override String ToString() #
Returns: String

Converts the tag to its HTML representation.

Returns

HTML string.