API Reference
Class
ColorExtensions
Helper methods for working with TablerColor values.
Inheritance
- Object
- ColorExtensions
Methods
public static String ToCssRgb(TablerColor color) #Returns:
StringReturns the RGB component triplet for CSS custom properties (for example 87, 146, 214).
Parameters
- color HtmlForgeX.TablerColor
public static String ToHex(TablerColor color) #Returns:
StringReturns the hexadecimal color code for the given TablerColor.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerAlert(TablerColor color) #Returns:
StringConverts TablerColor to TablerAlert. Note: not all colors are valid for alerts.
Parameters
- color HtmlForgeX.TablerColor
- The color.
public static String ToTablerBackground(TablerColor color) #Returns:
StringInitializes or configures ToTablerBackground.
Parameters
- color HtmlForgeX.TablerColor
public static TablerBadgeColor ToTablerBadgeColor(TablerColor color) #Returns:
TablerBadgeColorConverts a TablerColor into the closest TablerBadgeColor.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerStatus(TablerColor color) #Returns:
StringInitializes or configures ToTablerStatus.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerSteps(TablerColor color) #Returns:
StringInitializes or configures ToTablerSteps.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerString(TablerColor color) #Returns:
StringInitializes or configures ToTablerString.
Parameters
- color HtmlForgeX.TablerColor
public static String ToTablerText(TablerColor color) #Returns:
StringInitializes or configures ToTablerText.
Parameters
- color HtmlForgeX.TablerColor