DisclosureView
Clickable view that expands or collapses a section.
Set the following data attributes on the element:
data-collapsed-text
: text to display when content collapseddata-expanded-text
: text to display when content expanded
DisclosureView.toggleState(isVisible)
Toggles the visibility of the section.
Parameters
isVisible: boolean
, True if the section should be visible (default: false).