HtmlForgeX

API Reference

Class

TablerCardActionBuilder

Namespace HtmlForgeX
Assembly HtmlForgeX

Builder for card header actions

Inheritance

  • Object
  • TablerCardActionBuilder

Constructors

public TablerCardActionBuilder(Document document = null) #

Initializes a new instance of the TablerCardActionBuilder class.

Parameters

document HtmlForgeX.Document = null optionalposition: 0
Optional parent document used when adding actions.

Methods

public TablerCardActionBuilder Badge(String text, TablerBadgeColor color = Success, TablerBadgeVisualStyle style = Light, TablerBadgeSize size = Default, Boolean pill = true, String href = null) #
Returns: TablerCardActionBuilder

Adds a badge action to the header actions area.

Parameters

text System.String requiredposition: 0
color HtmlForgeX.TablerBadgeColor = Success optionalposition: 1
style HtmlForgeX.TablerBadgeVisualStyle = Light optionalposition: 2
size HtmlForgeX.TablerBadgeSize = Default optionalposition: 3
pill System.Boolean = true optionalposition: 4
href System.String = null optionalposition: 5
public TablerCardActionBuilder Button(String text, Action<TablerCardButton> config = null) #
Returns: TablerCardActionBuilder

Initializes or configures Button.

Parameters

text System.String requiredposition: 0
config System.Action{HtmlForgeX.TablerCardButton} = null optionalposition: 1
public TablerCardActionBuilder Custom(Element element) #
Returns: TablerCardActionBuilder

Adds a custom element to the actions area.

Parameters

element HtmlForgeX.Element requiredposition: 0
public IReadOnlyList<TablerCardAction> GetActions() #
Returns: IReadOnlyList<TablerCardAction>

Retrieves the collection of actions configured for the header.

public TablerCardActionBuilder IconButton(TablerIconType icon, Action<TablerCardButton> config = null) #
Returns: TablerCardActionBuilder

Initializes or configures IconButton.

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
config System.Action{HtmlForgeX.TablerCardButton} = null optionalposition: 1
public TablerCardActionBuilder PaddingX(TablerSpacing spacing) #
Returns: TablerCardActionBuilder

Sets internal horizontal padding for the most recently added badge action. No-op if the last action is not a badge.

Parameters

spacing HtmlForgeX.TablerSpacing requiredposition: 0