HtmlForgeX

API Reference

Class

TablerFlagIcon

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Renders a Tabler flag icon span (class="flag flag-country-xx"). Requires TablerFlags library.

Inheritance

Constructors

Methods

Code 2 overloads
public TablerFlagIcon Code(Country country) #
Returns: TablerFlagIcon

Two-letter ISO code (lowercase), e.g. "us", "gb", "pl".

Parameters

iso2 System.String requiredposition: 0
Code(HtmlForgeX.Country country) #

Sets the flag code from a Country enum (uses ISO2).

Parameters

country HtmlForgeX.Country required
RegisterLibraries() #

Registers the Tabler Flags CSS.

public override String ToString() #
Returns: String

Builds the HTML span with the proper flag class.