API Reference
Class
TablerCardActionBuilder
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
- 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
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