Compress
Uses the display method.
1
2
3
4
5
6
7
...
Using the class method
Allow toggle
1
2
3
4
5
6
7
...Toggle
Parameters (Blade)
| Key | Default value | Type | Available values | Description |
|---|---|---|---|---|
|
data-js-compressed
|
number | string | - | Compresses sibling elements (using classes or display styling). |
|
data-js-compressed-class
|
class | string | - | A class name to be added/removed |
|
data-js-compressed-toggle
|
string | - | Add the attribute to allow toggling of the items. | |
|
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 |