HtmlForgeX

API Reference

Class

TablerCardEnhanced

Namespace HtmlForgeX
Assembly HtmlForgeX

Enhanced TablerCard with all features from Tabler cards.html, card-actions.html, and cards-masonry.html Extends the existing TablerCard to follow HtmlForgeX patterns

Inheritance

Constructors

public TablerCardEnhanced() #

Initializes or configures TablerCardEnhanced.

Methods

public override String ToString() #
Returns: String

Initializes or configures ToString.

public TablerCardEnhanced WithFooter(String text = "", Boolean transparent = false) #
Returns: TablerCardEnhanced

Initializes or configures WithFooter.

Parameters

text System.String = "" optionalposition: 0
transparent System.Boolean = false optionalposition: 1
public TablerCardEnhanced WithFooterAvatars(params String[] imageUrls) #
Returns: TablerCardEnhanced

Initializes or configures WithFooterAvatars.

Parameters

imageUrls System.String[] requiredposition: 0
public TablerCardEnhanced WithFooterButton(String text, String href = "#", TablerButtonVariant variant = Primary) #
Returns: TablerCardEnhanced

Initializes or configures WithFooterButton.

Parameters

text System.String requiredposition: 0
href System.String = "#" optionalposition: 1
variant HtmlForgeX.TablerButtonVariant = Primary optionalposition: 2
public TablerCardEnhanced WithFooterSwitch(Boolean isChecked = false) #
Returns: TablerCardEnhanced

Initializes or configures WithFooterSwitch.

Parameters

isChecked System.Boolean = false optionalposition: 0
public TablerCardEnhanced WithHeader(String title, String subtitle = "") #
Returns: TablerCardEnhanced

Initializes or configures WithHeader.

Parameters

title System.String requiredposition: 0
subtitle System.String = "" optionalposition: 1
public TablerCardEnhanced WithHeaderAction(String text, String href = "#", Nullable<TablerIconType> icon = null, TablerButtonVariant variant = Primary) #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderAction.

Parameters

text System.String requiredposition: 0
href System.String = "#" optionalposition: 1
icon System.Nullable{HtmlForgeX.TablerIconType} = null optionalposition: 2
variant HtmlForgeX.TablerButtonVariant = Primary optionalposition: 3
WithHeaderAvatar 2 overloads
public TablerCardEnhanced WithHeaderAvatar(String imageUrl, String alt = "") #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderAvatar.

Parameters

imageUrl System.String requiredposition: 0
alt System.String = "" optionalposition: 1
public TablerCardEnhanced WithHeaderAvatar(TablerIconType icon, TablerColor backgroundColor = Primary, TablerColor textColor = White) #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderAvatar.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
backgroundColor HtmlForgeX.TablerColor = Primary optionalposition: 1
textColor HtmlForgeX.TablerColor = White optionalposition: 2
public TablerCardEnhanced WithHeaderDropdown(Action<TablerDropdown> configure) #
Returns: TablerCardEnhanced

Adds a dropdown menu to the header using a configuration action.

Parameters

configure System.Action{HtmlForgeX.TablerDropdown} requiredposition: 0
Action to configure the dropdown.

Returns

The current card instance.

public TablerCardEnhanced WithHeaderIconAction(TablerIconType icon, String href = "#") #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderIconAction.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
href System.String = "#" optionalposition: 1
public TablerCardEnhanced WithHeaderLightBackground() #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderLightBackground.

public TablerCardEnhanced WithHeaderPills(List<TablerNavItem> navItems) #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderPills.

Parameters

navItems System.Collections.Generic.List{HtmlForgeX.TablerNavItem} requiredposition: 0
public TablerCardEnhanced WithHeaderTabs(List<TablerNavItem> navItems) #
Returns: TablerCardEnhanced

Initializes or configures WithHeaderTabs.

Parameters

navItems System.Collections.Generic.List{HtmlForgeX.TablerNavItem} requiredposition: 0
public TablerCardEnhanced WithHeaderTitleLevel(HeaderLevelTag level) #
Returns: TablerCardEnhanced

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

Parameters

level HtmlForgeX.HeaderLevelTag requiredposition: 0
public TablerCardEnhanced WithImage(String url, String position = "top", String alt = "") #
Returns: TablerCardEnhanced

Initializes or configures WithImage.

Parameters

url System.String requiredposition: 0
position System.String = "top" optionalposition: 1
alt System.String = "" optionalposition: 2
public TablerCardEnhanced WithImageSettings(Boolean responsive = true, String aspectRatio = "21x9") #
Returns: TablerCardEnhanced

Initializes or configures WithImageSettings.

Parameters

responsive System.Boolean = true optionalposition: 0
aspectRatio System.String = "21x9" optionalposition: 1

Properties

public String HeaderTitle { get; set; } #

Primary title displayed in the card header.

public String HeaderSubtitle { get; set; } #

Secondary title displayed beneath the header title.

public TablerAvatar HeaderAvatar { get; set; } #

Optional avatar shown in the header.

public List<Element> HeaderActions { get; set; } #

Action elements such as buttons shown in the header.

public Boolean HeaderLightBackground { get; set; } #

Whether the header uses a light background color.

public Boolean HasHeaderTabs { get; set; } #

Indicates if navigation tabs are present in the header.

public Boolean HasHeaderPills { get; set; } #

Indicates if pill-style navigation is present in the header.

public List<TablerNavItem> HeaderNavItems { get; set; } #

Navigation items rendered within the header.

public Nullable<TablerColor> HeaderStatusDotColor { get; set; } #

Status dot color for the header.

public HeaderLevelTag HeaderTitleLevel { get; set; } #

Heading level used for the card header title. Defaults to H3.

public String ImageUrl { get; set; } #

URL of the card image.

public String ImagePosition { get; set; } #

Position of the image relative to the card.

public String ImageAlt { get; set; } #

Alternate text for the image.

public Boolean ImageResponsive { get; set; } #

Whether the image should be responsive.

public String ImageAspectRatio { get; set; } #

Aspect ratio used when cropping the image.

public List<Element> FooterActions { get; set; } #

Action elements displayed in the footer.

public List<TablerAvatar> FooterAvatars { get; set; } #

Avatars displayed within the footer.

public String FooterText { get; set; } #

Text content displayed in the footer.

public Boolean FooterTransparent { get; set; } #

Whether the footer background is transparent.

public Boolean FooterHasSwitch { get; set; } #

Whether the footer contains a toggle switch.

public Boolean FooterSwitchChecked { get; set; } #

Initial checked state of the footer switch.