Toggle
Parameters (Blade)
| Key | Default value | Type | Available values | Description |
|---|---|---|---|---|
|
data-js-toggle-container
|
string | - | Outer container | |
|
data-js-toggle-single
|
class | string | - | A single element to toggle |
|
data-js-toggle-multi
|
class | string | - | A container where every child is toggled |
|
data-js-toggle-trigger
|
string | - | An element with a click event attached to toggle | |
|
id
|
string | - | The DOM id of the component. | |
|
classList
|
[] | array | - | Array containing wrapping classes array |
|
attributeList
|
[] | array | - | Array containing keys and values rendered as attributes |