API Reference
Class
TablerSelectOption
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:
TablerSelectOptionShow an avatar on the left using the given image URL.
Parameters
- url System.String
public TablerSelectOption Badge(String text, String color = "secondary") #Returns:
TablerSelectOptionAdd a trailing badge with optional Tabler color name.
Parameters
- text System.String
- color System.String = "secondary"
public TablerSelectOption Description(String text) #Returns:
TablerSelectOptionSet a small gray description under the option text.
Parameters
- text System.String
Flag 2 overloads
public TablerSelectOption Flag(Country country) #Returns:
TablerSelectOptionShow a country flag on the left (use ISO2 code, e.g., "us", "gb").
Parameters
- code System.String
public TablerSelectOption IconSvg(String svgInline) #Returns:
TablerSelectOptionProvide inline SVG markup to render as an icon on the left.
Parameters
- svgInline System.String