HtmlForgeX

API Reference

Class

TablerCardHeader

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Tabler card header component with fluent API - no raw HTML required

Inheritance

Constructors

Methods

public TablerCardHeader AppendSubtitle(String text, Nullable<HeaderLevelTag> level = null, Nullable<TablerTextStyle> style = null, RGBColor color = null) #
Returns: TablerCardHeader

Appends an additional subtitle line below the main subtitle. Supports optional semantic header level and styling.

Parameters

text System.String requiredposition: 0
level System.Nullable{HtmlForgeX.HeaderLevelTag} = null optionalposition: 1
style System.Nullable{HtmlForgeX.TablerTextStyle} = null optionalposition: 2
color HtmlForgeX.RGBColor = null optionalposition: 3
public TablerCardHeader AutoScaleBadges(Boolean enabled = true) #
Returns: TablerCardHeader

Enables or disables automatic scaling of badge actions based on header title level.

Parameters

enabled System.Boolean = true optionalposition: 0
EnsureChildrenHaveDocumentReference() #

Ensures all children have proper Document references for library registration

GetAuxiliaryChildren() #
OnAddedToDocument() #

Override to ensure child elements have Document reference when initially added to document

public TablerCardHeader Style(TablerCardHeaderStyle style) #
Returns: TablerCardHeader

Set the header style (light, dark, transparent, etc.)

Parameters

style HtmlForgeX.TablerCardHeaderStyle requiredposition: 0
Subtitle 3 overloads
public TablerCardHeader Subtitle(Action<InlineText> subtitle) #
Returns: TablerCardHeader

Set the card header subtitle

Parameters

subtitle System.String requiredposition: 0
Subtitle(HtmlForgeX.Element subtitle) #

Sets a rich subtitle component (for example TablerRelativeTime or InlineText).

Parameters

subtitle HtmlForgeX.Element required
Subtitle(System.Action{HtmlForgeX.InlineText} subtitle) #

Sets a rich subtitle using the InlineText builder.

Parameters

subtitle System.Action{HtmlForgeX.InlineText} required
public TablerCardHeader SubtitleAsHeader(HeaderLevelTag level) #
Returns: TablerCardHeader

Renders the subtitle using a semantic heading tag (e.g., H4) to make it more title-like. Adds sensible defaults (text-body, fw-medium) unless overridden by TablerTextStyle).

Parameters

level HtmlForgeX.HeaderLevelTag requiredposition: 0
public TablerCardHeader SubtitleColor(RGBColor color) #
Returns: TablerCardHeader

Sets a custom RGB text color for the subtitle. Overrides theme class color if both set.

Parameters

color HtmlForgeX.RGBColor requiredposition: 0
public TablerCardHeader SubtitleStyle(TablerTextStyle style) #
Returns: TablerCardHeader

Sets the visual style (e.g., Muted) applied to the subtitle.

Parameters

style HtmlForgeX.TablerTextStyle requiredposition: 0
public TablerCardHeader Title(String title) #
Returns: TablerCardHeader

Set the card header title

Parameters

title System.String requiredposition: 0
public TablerCardHeader TitleDisplay(TablerTextSize size) #
Returns: TablerCardHeader

Applies a larger display size class to the title (e.g., display-3), independent of the semantic header level.

Parameters

size HtmlForgeX.TablerTextSize requiredposition: 0
public override String ToString() #
Returns: String

Initializes or configures ToString.

public TablerCardHeader WithActions(Action<TablerCardActionBuilder> actionsConfig) #
Returns: TablerCardHeader

Add action buttons to the header

Parameters

actionsConfig System.Action{HtmlForgeX.TablerCardActionBuilder} requiredposition: 0
public TablerCardHeader WithHeaderTitleLevel(HeaderLevelTag level) #
Returns: TablerCardHeader

Sets the HTML heading level for the header title (default H3).

Parameters

level HtmlForgeX.HeaderLevelTag requiredposition: 0
public TablerCardHeader WithNavigation(Action<TablerCardNavigation> navConfig) #
Returns: TablerCardHeader

Add navigation tabs or pills to the header

Parameters

navConfig System.Action{HtmlForgeX.TablerCardNavigation} requiredposition: 0

Properties

public Document Document { get; set; } #

Hide inherited Document property to ensure proper propagation to children