API Reference
Class
TablerCardActionBuilder
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.
Returned or exposed by
Accepted by parameters
Constructors
public TablerCardActionBuilder(Document document = null) #Initializes a new instance of the TablerCardActionBuilder class.
Parameters
- document HtmlForgeX.Document = null
- 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:
TablerCardActionBuilderAdds a badge action to the header actions area.
Parameters
- text System.String
- color HtmlForgeX.TablerBadgeColor = Success
- style HtmlForgeX.TablerBadgeVisualStyle = Light
- size HtmlForgeX.TablerBadgeSize = Default
- pill System.Boolean = true
- href System.String = null
public TablerCardActionBuilder Button(String text, Action<TablerCardButton> config = null) #Returns:
TablerCardActionBuilderInitializes or configures Button.
Parameters
- text System.String
- config System.Action{HtmlForgeX.TablerCardButton} = null
public TablerCardActionBuilder Custom(Element element) #Returns:
TablerCardActionBuilderAdds a custom element to the actions area.
Parameters
- element HtmlForgeX.Element
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:
TablerCardActionBuilderInitializes or configures IconButton.
Parameters
- icon HtmlForgeX.TablerIconType
- config System.Action{HtmlForgeX.TablerCardButton} = null
Info 2 overloads
public TablerCardActionBuilder Info(String text, String title = null, TablerPopoverPlacement placement = Left, TablerPopoverTrigger trigger = ClickOnly, TablerInfoPopoverVisualStyle visualStyle = Subtle) #Returns:
TablerCardActionBuilderAdds a compact info popover to the action rail.
Parameters
- text System.String
- title System.String = null
- placement HtmlForgeX.TablerPopoverPlacement = Left
- trigger HtmlForgeX.TablerPopoverTrigger = ClickOnly
- visualStyle HtmlForgeX.TablerInfoPopoverVisualStyle = Subtle
public TablerCardActionBuilder Info(Action<TablerInfoPopover> configure) #Returns:
TablerCardActionBuilderAdds a fully configured info popover to the action rail.
Parameters
- configure System.Action{HtmlForgeX.TablerInfoPopover}
public TablerCardActionBuilder PaddingX(TablerSpacing spacing) #Returns:
TablerCardActionBuilderSets internal horizontal padding for the most recently added badge action. No-op if the last action is not a badge.
Parameters
- spacing HtmlForgeX.TablerSpacing