HtmlForgeX

API Reference

Class

ColorExtensions

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers static

Helper methods for working with TablerColor values.

Inheritance

  • Object
  • ColorExtensions

Methods

public static String ToCssRgb(TablerColor color) #
Returns: String

Returns the RGB component triplet for CSS custom properties (for example 87, 146, 214).

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToHex(TablerColor color) #
Returns: String

Returns the hexadecimal color code for the given TablerColor.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToTablerAlert(TablerColor color) #
Returns: String

Converts TablerColor to TablerAlert. Note: not all colors are valid for alerts.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
The color.
public static String ToTablerBackground(TablerColor color) #
Returns: String

Initializes or configures ToTablerBackground.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static TablerBadgeColor ToTablerBadgeColor(TablerColor color) #
Returns: TablerBadgeColor

Converts a TablerColor into the closest TablerBadgeColor.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToTablerStatus(TablerColor color) #
Returns: String

Initializes or configures ToTablerStatus.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToTablerSteps(TablerColor color) #
Returns: String

Initializes or configures ToTablerSteps.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToTablerString(TablerColor color) #
Returns: String

Initializes or configures ToTablerString.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
public static String ToTablerText(TablerColor color) #
Returns: String

Initializes or configures ToTablerText.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0