Description
Applies a class to the target when toggled on.Usage
as element:Directive info
- This directive creates new scope.
Parameters
Example
<search:class-toggle target="#chart" class="hide" name="chart">Toggle</search:class-toggle>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
<class:toggle
target="{string}"
toggle-class="{string}"
[name="{string}"]>
</class:toggle>
| Param | Type | Details |
|---|---|---|
| target | string | jQuery selector for element |
| toggle-class | string | Name of class to toggle |
| name (optional) | string | Name of toggle. If set the user’s preference for the toggle will be saved |
<search:class-toggle target="#chart" class="hide" name="chart">Toggle</search:class-toggle>Was this page helpful?