Optional
autoOverride the widget's OpenableProperties.autoClose for this trigger.
Optional
classClass name(s) for the trigger. Will result in the trigger element, which could be a wrapper around the original element you passed, getting these classes.
Optional
hoverOpen the openable when this trigger is hovered.
If the device is touch and OpenableProperties.autoClose is enabled, the widget will be closed shortly after the pointer leaves both the trigger and the root element.
Optional
iconOverride the widget's CollapsibleConfig.icon for this trigger.
Currently only relevant for Collapsibles.
Optional
iconOverride the widget's CollapsibleConfig.iconClosed for this trigger.
Currently only relevant for Collapsibles.
Optional
iconOverride the widget's CollapsibleConfig.iconOpen for this trigger.
Currently only relevant for Collapsibles.
Optional
idThe DOM ID of the trigger. Will result in the trigger element, which could be a wrapper around the original element (as in the case of Collapsible you passed, getting this ID.
IMPORTANT: If the trigger element already has an ID and is not being wrapped, then this will override the ID and it won't be restored on destroy.
Optional
preventWhether to prevent default click action.
Per-trigger based configuration. Can either be given as an object as the value of the OpenableProperties.triggers map, or it can be set as a string configuration in the
data-lisn-<name>-trigger
data attribute. See getWidgetConfig for the syntax.Example