HtmlForgeX

API Reference

Class

TablerAccordionItem

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Represents a single item within a Tabler accordion component.

Inheritance

Constructors

public TablerAccordionItem(String parentId) #

Initializes or configures TablerAccordionItem.

Parameters

parentId System.String requiredposition: 0

Methods

Content 3 overloads
public TablerAccordionItem Content(Action<ElementContainer> content) #
Returns: TablerAccordionItem

Initializes or configures Content.

Parameters

content HtmlForgeX.Element requiredposition: 0
Content(System.Action{HtmlForgeX.ElementContainer} content) #

Initializes or configures Content.

Parameters

content System.Action{HtmlForgeX.ElementContainer} required
public ElementContainer Content() #
Returns: ElementContainer

Returns a fluent container for building content using method chaining

public TablerAccordionItem CopyTitleButton(String tooltip = "Copy") #
Returns: TablerAccordionItem

Adds a small copy icon next to the title that copies the title text to the clipboard. Appears in the trailing area inside the header, and does not toggle the accordion when clicked.

Parameters

tooltip System.String = "Copy" optionalposition: 0
Tooltip text (default: "Copy").
public TablerAccordionItem Disabled(Boolean disabled = true) #
Returns: TablerAccordionItem

Sets the accordion item to be disabled

Parameters

disabled System.Boolean = true optionalposition: 0
public TablerAccordionItem Expanded(Boolean expanded = true) #
Returns: TablerAccordionItem

Sets the accordion item to be expanded by default

Parameters

expanded System.Boolean = true optionalposition: 0
GetAuxiliaryChildren() #

Treat content and header-right container as auxiliary children so document propagation and RegisterLibraries traverse them.

public TablerAccordionItem HeaderRight(Action<ElementContainer> rightContent) #
Returns: TablerAccordionItem

Adds right-aligned content inside the accordion header button (e.g., badges or counters).

Parameters

rightContent System.Action{HtmlForgeX.ElementContainer} requiredposition: 0
Callback that builds header-right content.
public TablerAccordionItem HeaderSize(Int32 step) #
Returns: TablerAccordionItem

Sets the header text size using Bootstrap font-size scale (fs-1 .. fs-6).

Parameters

step System.Int32 requiredposition: 0
public TablerAccordionItem HeaderTrailing(Action<ElementContainer> trailingContent) #
Returns: TablerAccordionItem

Adds trailing content inside the header button, positioned just left of the chevron. Use for inline, optionally interactive UI like nav pills or small badges.

Parameters

trailingContent System.Action{HtmlForgeX.ElementContainer} requiredposition: 0
Callback that builds trailing content.
public TablerAccordionItem HeaderTrailingBadge(String text, TablerBadgeColor color, TablerBadgeVisualStyle style, TablerBadgeSize size = Small, Boolean pill = true, String href = null) #
Returns: TablerAccordionItem

Convenience: add a badge to the trailing (inside-right) header zone.

Parameters

text System.String requiredposition: 0
color HtmlForgeX.TablerBadgeColor requiredposition: 1
style HtmlForgeX.TablerBadgeVisualStyle requiredposition: 2
size HtmlForgeX.TablerBadgeSize = Small optionalposition: 3
pill System.Boolean = true optionalposition: 4
href System.String = null optionalposition: 5
public TablerAccordionItem HeaderTrailingPills(Action<TablerNavPills> configure) #
Returns: TablerAccordionItem

Convenience: add a compact nav-pills group to the trailing (inside-right) zone.

Parameters

configure System.Action{HtmlForgeX.TablerNavPills} requiredposition: 0
public TablerAccordionItem Key(String key) #
Returns: TablerAccordionItem
EditorBrowsable(2)

Sets a stable key used for persistence within the parent accordion. The key is sanitized for storage; provide short, unique values for best stability.

Parameters

key System.String requiredposition: 0
OnAddedToDocument() #

Ensure nested content is wired to the document lifecycle and libraries register.

SetAccordionConfig(HtmlForgeX.TablerAccordionType arg1, System.Boolean arg2, System.Nullable{System.Int32} arg3, System.Boolean arg4, System.Boolean arg5, System.String arg6) #

Internal method to set accordion configuration from parent

Parameters

arg1 HtmlForgeX.TablerAccordionType required
arg2 System.Boolean required
arg3 System.Nullable{System.Int32} required
arg4 System.Boolean required
arg5 System.Boolean required
arg6 System.String required
public TablerAccordionItem Title(String title) #
Returns: TablerAccordionItem

Initializes or configures Title.

Parameters

title System.String requiredposition: 0
public override String ToString() #
Returns: String

Initializes or configures ToString.