API Reference
Class
CardSettings
Settings sub‑builder for TablerCard.
Inheritance
- Object
- CardSettings
Methods
Background 3 overloads
public CardSettings Background(RGBColor background, RGBColor text = null) #Returns:
CardSettingsSets a Tabler color background optionally with a light variant.
Parameters
- color HtmlForgeX.TablerColor
- Background color.
- isLight System.Boolean = null
- True to use the light variant.
Background(HtmlForgeX.RGBColor background, HtmlForgeX.RGBColor text) #Sets a custom RGB background and optional text color.
Parameters
- background HtmlForgeX.RGBColor
- Background color.
- text HtmlForgeX.RGBColor
- Optional text color.
public CardSettings Background(String hexBackground, String hexText = null) #Returns:
CardSettingsSets a custom hexadecimal background and optional text color.
Parameters
- hexBackground System.String
- Hex value for background.
- hexText System.String = null
- Optional hex value for text.
public CardSettings FillHeight(Boolean enable = true) #Returns:
CardSettingsMakes the card fill the available height and keeps the body flexible so mixed-content cards align nicely in grid rows.
Parameters
- enable System.Boolean = true
public CardSettings Link(String url, String effect = null) #Returns:
CardSettingsMakes the card act as a link.
Parameters
- url System.String
- Destination URL.
- effect System.String = null
- Optional hover effect.
public CardSettings Margin(TablerMargin margin) #Returns:
CardSettingsApplies Tabler margin utility classes.
Parameters
- margin HtmlForgeX.TablerMargin
- Margin value.
public CardSettings Progress(Double percentage, Nullable<TablerColor> color = null) #Returns:
CardSettingsDisplays a progress bar inside the card.
Parameters
- percentage System.Double
- Completion percentage.
- color System.Nullable{HtmlForgeX.TablerColor} = null
- Optional progress color.
Ribbon 2 overloads
public CardSettings Ribbon(TablerIconType icon, Nullable<TablerColor> color = null, String position = "top") #Returns:
CardSettingsAdds a text ribbon to the card.
Parameters
- text System.String
- Ribbon text.
- color System.Nullable{HtmlForgeX.TablerColor} = null
- Optional ribbon color.
- position System.String = "top"
- Ribbon position.
Ribbon(HtmlForgeX.TablerIconType icon, System.Nullable{HtmlForgeX.TablerColor} color, System.String position) #Adds an icon ribbon to the card.
Parameters
- icon HtmlForgeX.TablerIconType
- Ribbon icon.
- color System.Nullable{HtmlForgeX.TablerColor}
- Optional ribbon color.
- position System.String
- Ribbon position.
public CardSettings Rotate(String direction) #Returns:
CardSettingsRotates the card content.
Parameters
- direction System.String
- Rotation direction.
public CardSettings Stamp(TablerIconType icon, Nullable<TablerColor> backgroundColor = null, Nullable<TablerColor> iconColor = null) #Returns:
CardSettingsAdds a stamp icon to the card.
Parameters
- icon HtmlForgeX.TablerIconType
- Stamp icon.
- backgroundColor System.Nullable{HtmlForgeX.TablerColor} = null
- Optional stamp background color.
- iconColor System.Nullable{HtmlForgeX.TablerColor} = null
- Optional stamp icon color.
public CardSettings Status(String position, TablerColor color) #Returns:
CardSettingsAdds a colored status indicator.
Parameters
- position System.String
- Indicator position.
- color HtmlForgeX.TablerColor
- Indicator color.
public CardSettings Surface(TablerSurfaceStyle style) #Returns:
CardSettingsApplies a shared surface treatment to the card shell.
Parameters
- style HtmlForgeX.TablerSurfaceStyle
- Surface style.