API Reference
CardSettings
Settings sub‑builder for TablerCard.
Inheritance
- Object
- CardSettings
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method CardSettings.Active
- Method CardSettings.Background
- Method CardSettings.Background
- Method CardSettings.Borderless
- Method CardSettings.FillHeight
- Method CardSettings.Inactive
- Method CardSettings.Link
- Method CardSettings.Margin
- Method CardSettings.MeasuredMediaLayout
- Method CardSettings.Progress
- Method CardSettings.Ribbon
- Method CardSettings.Rotate
- Method CardSettings.Stacked
- Method CardSettings.Stamp
- Method CardSettings.Status
- Method CardSettings.Surface
Accepted by parameters
- Method TablerCard.Settings
- Method TablerCardEnhanced.Settings
- Method TablerCardKpi.Settings
- Method TablerCardMini.Settings
- Method TablerShareLinkCardSettings.Card
Methods
public CardSettings Background(RGBColor background, RGBColor text = null) #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) #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) #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) #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) #CardSettingsApplies Tabler margin utility classes.
Parameters
- margin HtmlForgeX.TablerMargin
- Margin value.
public CardSettings MeasuredMediaLayout(Int32 chromeHeight = 170, String mediaAspectRatio = null, Boolean enable = true) #CardSettingsOpts the card into Pretext-driven mixed media placement. Use this when text height is variable but media ratio and footer chrome are known inputs.
Parameters
- chromeHeight System.Int32 = 170
- mediaAspectRatio System.String = null
- enable System.Boolean = true
public CardSettings Progress(Double percentage, Nullable<TablerColor> color = null) #CardSettingsDisplays a progress bar inside the card.
Parameters
- percentage System.Double
- Completion percentage.
- color System.Nullable{HtmlForgeX.TablerColor} = null
- Optional progress color.
public CardSettings Ribbon(TablerIconType icon, Nullable<TablerColor> color = null, String position = "top") #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) #CardSettingsRotates the card content.
Parameters
- direction System.String
- Rotation direction.
public CardSettings Stamp(TablerIconType icon, Nullable<TablerColor> backgroundColor = null, Nullable<TablerColor> iconColor = null) #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) #CardSettingsAdds a colored status indicator.
Parameters
- position System.String
- Indicator position.
- color HtmlForgeX.TablerColor
- Indicator color.
public CardSettings Surface(TablerSurfaceStyle style) #CardSettingsApplies a shared surface treatment to the card shell.
Parameters
- style HtmlForgeX.TablerSurfaceStyle
- Surface style.