Toggle State
Toggle from one value to another.
How to use?
Copy-paste the following
<script>
near the
end of your pages under JS Blueberry to enable
it.
Copy-paste the init function under
JS Plugins Init., before the closing
</body>
tag, to
enable it.
Methods
Options can be passed via data attributes or JavaScript. For
data attributes, append the option name to
data-hs-toggle-state-options='{}'
.
Parameters | Description | Default value |
---|---|---|
|
Selectors whose state changes depending on the current state (checked/unchecked) | null |
|
Toggle class that is given/removed to an invoker |
classMap: { toggle: 'toggled' }
|