HtmlForgeX

API Reference

Class

CardSettings

Namespace HtmlForgeX
Assembly HtmlForgeX

Settings sub‑builder for TablerCard.

Inheritance

  • Object
  • CardSettings

Methods

public CardSettings Active() #
Returns: CardSettings

Marks the card as active.

Background 3 overloads
public CardSettings Background(RGBColor background, RGBColor text = null) #
Returns: CardSettings

Sets a Tabler color background optionally with a light variant.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
Background color.
isLight System.Boolean = null optionalposition: 1
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 required
Background color.
text HtmlForgeX.RGBColor required
Optional text color.
public CardSettings Background(String hexBackground, String hexText = null) #
Returns: CardSettings

Sets a custom hexadecimal background and optional text color.

Parameters

hexBackground System.String requiredposition: 0
Hex value for background.
hexText System.String = null optionalposition: 1
Optional hex value for text.
public CardSettings Borderless() #
Returns: CardSettings

Renders the card without borders.

public TablerCard End() #
Returns: TablerCard

Returns control to the root card builder.

public CardSettings FillHeight(Boolean enable = true) #
Returns: CardSettings

Makes 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 optionalposition: 0
public CardSettings Inactive() #
Returns: CardSettings

Marks the card as inactive.

public CardSettings Margin(TablerMargin margin) #
Returns: CardSettings

Applies Tabler margin utility classes.

Parameters

margin HtmlForgeX.TablerMargin requiredposition: 0
Margin value.
public CardSettings Progress(Double percentage, Nullable<TablerColor> color = null) #
Returns: CardSettings

Displays a progress bar inside the card.

Parameters

percentage System.Double requiredposition: 0
Completion percentage.
color System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
Optional progress color.
Ribbon 2 overloads
public CardSettings Ribbon(TablerIconType icon, Nullable<TablerColor> color = null, String position = "top") #
Returns: CardSettings

Adds a text ribbon to the card.

Parameters

text System.String requiredposition: 0
Ribbon text.
color System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
Optional ribbon color.
position System.String = "top" optionalposition: 2
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 required
Ribbon icon.
color System.Nullable{HtmlForgeX.TablerColor} required
Optional ribbon color.
position System.String required
Ribbon position.
public CardSettings Rotate(String direction) #
Returns: CardSettings

Rotates the card content.

Parameters

direction System.String requiredposition: 0
Rotation direction.
public CardSettings Stacked() #
Returns: CardSettings

Renders the card in stacked layout.

public CardSettings Stamp(TablerIconType icon, Nullable<TablerColor> backgroundColor = null, Nullable<TablerColor> iconColor = null) #
Returns: CardSettings

Adds a stamp icon to the card.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
Stamp icon.
backgroundColor System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 1
Optional stamp background color.
iconColor System.Nullable{HtmlForgeX.TablerColor} = null optionalposition: 2
Optional stamp icon color.
public CardSettings Status(String position, TablerColor color) #
Returns: CardSettings

Adds a colored status indicator.

Parameters

position System.String requiredposition: 0
Indicator position.
color HtmlForgeX.TablerColor requiredposition: 1
Indicator color.
public CardSettings Surface(TablerSurfaceStyle style) #
Returns: CardSettings

Applies a shared surface treatment to the card shell.

Parameters

style HtmlForgeX.TablerSurfaceStyle requiredposition: 0
Surface style.