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
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
- Method AccordionSettings.Behavior
- Method AccordionSettings.CopyTitleButtons
- Method AccordionSettings.Localization
- Method AccordionSettings.MeasuredAutoHeight
- Method AccordionSettings.PersistState
- Method AccordionSettings.Searchable
- Method AccordionSettings.SearchDebounce
- Method AccordionSettings.SearchHelp
- Method AccordionSettings.SearchPlaceholder
- Method AccordionSettings.SearchShowOperatorsInPlaceholder
- Method AccordionSettings.SectionStyle
- Method AccordionSettings.SingleOpenClosable
- Method AccordionSettings.Style
Accepted by parameters
- Method TablerAccordion.Settings
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 = null) #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 = null
- Optional tooltip text. When omitted, the accordion localization fallback is used.
public TablerAccordion End() #TablerAccordionReturns the root accordion to continue chaining.
public AccordionSettings Localization(Action<AccordionLocalization> configure) #AccordionSettingsLocalizes built-in accordion chrome such as search hints, no-results text, and copy-title tooltips.
Parameters
- configure System.Action{HtmlForgeX.AccordionLocalization}
public AccordionSettings MeasuredAutoHeight(Boolean enable = true, Boolean showMetrics = true) #AccordionSettingsUses Pretext to predict text-first panel heights and optionally display line/height metrics in item headers. Best for narrative panels.
Parameters
- enable System.Boolean = true
- showMetrics System.Boolean = true
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