HtmlForgeX

API Reference

Class

TablerSelectOption

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Fluent metadata builder for a select option's rich visuals (avatar, flag, badge, icon, description).

Inheritance

  • Object
  • TablerSelectOption

Methods

public TablerSelectOption Avatar(String url) #
Returns: TablerSelectOption

Show an avatar on the left using the given image URL.

Parameters

url System.String requiredposition: 0
public TablerSelectOption Badge(String text, String color = "secondary") #
Returns: TablerSelectOption

Add a trailing badge with optional Tabler color name.

Parameters

text System.String requiredposition: 0
color System.String = "secondary" optionalposition: 1
public TablerSelectOption Description(String text) #
Returns: TablerSelectOption

Set a small gray description under the option text.

Parameters

text System.String requiredposition: 0
Flag 2 overloads
public TablerSelectOption Flag(Country country) #
Returns: TablerSelectOption

Show a country flag on the left (use ISO2 code, e.g., "us", "gb").

Parameters

code System.String requiredposition: 0
Flag(HtmlForgeX.Country country) #

Shows a country flag by Country enum (ISO2).

Parameters

country HtmlForgeX.Country required
public TablerSelectOption IconSvg(String svgInline) #
Returns: TablerSelectOption

Provide inline SVG markup to render as an icon on the left.

Parameters

svgInline System.String requiredposition: 0