API Reference
AccordionSettings
Settings sub‑builder for TablerAccordion to keep the root API small. Returned by TablerAccordion.Settings(...) and chains back to the root via End.
Inheritance
- Object
- AccordionSettings
Methods
public AccordionSettings Behavior(AccordionBehavior behavior, String persistKey = null) #AccordionSettingsSets accordion behavior and optional persistence key.
Parameters
- behavior HtmlForgeX.AccordionBehavior
- Behavior flags.
- persistKey System.String = null
- Optional storage key.
public AccordionSettings CopyTitleButtons(Boolean enable = true, String tooltip = "Copy") #AccordionSettingsShow a small copy icon next to each accordion item title. Clicking it copies the title without toggling.
Parameters
- enable System.Boolean = true
- Enable/disable for all items in this accordion.
- tooltip System.String = "Copy"
- Optional tooltip text (default: "Copy").
public TablerAccordion End() #TablerAccordionReturns the root accordion to continue chaining.
public AccordionSettings PersistState(String key = null) #AccordionSettingsPersists expanded state across page loads (with storage fallback for file:// reports).
Parameters
- key System.String = null
- Optional storage key (auto key derived from titles when omitted).
public AccordionSettings Searchable(Boolean enable = true) #AccordionSettingsEnable/disable a search box above the accordion to filter sections by header text and badges.
Parameters
- enable System.Boolean = true
public AccordionSettings SearchDebounce(Int32 milliseconds) #AccordionSettingsSet debounce in milliseconds for the search input (default 150).
Parameters
- milliseconds System.Int32
public AccordionSettings SearchHelp(Boolean enable = true) #AccordionSettingsShow a small help hint under the search box with operator examples.
Parameters
- enable System.Boolean = true
public AccordionSettings SearchPlaceholder(String placeholder) #AccordionSettingsCustomize placeholder text displayed in the search box (requires Searchable enabled).
Parameters
- placeholder System.String
public AccordionSettings SearchShowOperatorsInPlaceholder(Boolean show = true) #AccordionSettingsShow operator hints in the placeholder (AND/OR/"phrase"/-NOT). Default off.
Parameters
- show System.Boolean = true
public AccordionSettings SectionStyle(Boolean enable = true) #AccordionSettingsConvenience helper to switch to the Section style.
Parameters
- enable System.Boolean = true
public AccordionSettings SingleOpenClosable(Boolean enable = true) #AccordionSettingsAllows only one item open at a time and closable by clicking again.
Parameters
- enable System.Boolean = true
- True to enable single open/closable mode.
public AccordionSettings Style(TablerAccordionStyle style) #AccordionSettingsSets the accordion visual style (e.g. Section).
Parameters
- style HtmlForgeX.TablerAccordionStyle