HtmlForgeX

API Reference

Class

TablerCardActionBuilder

Namespace HtmlForgeX
Assembly HtmlForgeX

Builder for card header actions

Inheritance

  • Object
  • TablerCardActionBuilder

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

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
Info 2 overloads
public TablerCardActionBuilder Info(String text, String title = null, TablerPopoverPlacement placement = Left, TablerPopoverTrigger trigger = ClickOnly, TablerInfoPopoverVisualStyle visualStyle = Subtle) #
Returns: TablerCardActionBuilder

Adds a compact info popover to the action rail.

Parameters

text System.String requiredposition: 0
title System.String = null optionalposition: 1
placement HtmlForgeX.TablerPopoverPlacement = Left optionalposition: 2
trigger HtmlForgeX.TablerPopoverTrigger = ClickOnly optionalposition: 3
visualStyle HtmlForgeX.TablerInfoPopoverVisualStyle = Subtle optionalposition: 4
public TablerCardActionBuilder Info(Action<TablerInfoPopover> configure) #
Returns: TablerCardActionBuilder

Adds a fully configured info popover to the action rail.

Parameters

configure System.Action{HtmlForgeX.TablerInfoPopover} requiredposition: 0
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