HtmlForgeX

API Reference

Class

TablerCardBadgeAction

Namespace HtmlForgeX
Assembly HtmlForgeX

Card action that renders a TablerBadge in the header actions area.

Inheritance

Constructors

public TablerCardBadgeAction(String text) #

Create a badge action with the specified text.

Parameters

text System.String requiredposition: 0

Methods

AutoSizeIfUnset(HtmlForgeX.TablerBadgeSize arg1) #

Apply an automatic size if the size wasn't set explicitly by the caller.

Parameters

arg1 HtmlForgeX.TablerBadgeSize required
public TablerCardBadgeAction Color(TablerBadgeColor color) #
Returns: TablerCardBadgeAction

Set badge color.

Parameters

color HtmlForgeX.TablerBadgeColor requiredposition: 0
public TablerCardBadgeAction Href(String href) #
Returns: TablerCardBadgeAction

Make badge a link.

Parameters

href System.String requiredposition: 0
public TablerCardBadgeAction PaddingX(TablerSpacing spacing) #
Returns: TablerCardBadgeAction

Internal horizontal padding scale (px-*).

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0
public TablerCardBadgeAction Pill(Boolean pill = true) #
Returns: TablerCardBadgeAction

Make badge pill-shaped.

Parameters

pill System.Boolean = true optionalposition: 0
public TablerCardBadgeAction Size(TablerBadgeSize size) #
Returns: TablerCardBadgeAction

Set badge size.

Parameters

size HtmlForgeX.TablerBadgeSize requiredposition: 0
public TablerCardBadgeAction Style(TablerBadgeVisualStyle style) #
Returns: TablerCardBadgeAction

Set badge style.

Parameters

style HtmlForgeX.TablerBadgeVisualStyle requiredposition: 0
public override String ToString() #
Returns: String

Render badge to HTML.