HtmlForgeX

API Reference

Enum

AccordionBehavior

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers sealed
Attributes
Flags

Flags that control advanced accordion behavior without relying on Bootstrap's data-bs-parent grouping.

Inheritance

  • Enum
  • AccordionBehavior

Values

public const AccordionBehavior None #

No special behavior.

Value: 0
public const AccordionBehavior SingleOpenClosable #

Keep at most one item open at a time, but allow closing the last open item (implemented without data-bs-parent to permit closing the last).

Value: 1
public const AccordionBehavior PersistState #

Persist open/closed state across reloads using localStorage.

Value: 2
public const AccordionBehavior Searchable #

Adds a small search box above the accordion and filters items by header text, including inline badges and trailing header content.

Value: 4