Compress

Uses the display method.

1 2 3 4 5 6 7 ...

Using the class method

1 2 3 ...(4)

Allow toggle

1 2 3 4 5 6 7 ...Toggle

Parameters (Blade)

Key Default value Type Available values Description
number string - Compresses sibling elements (using classes or display styling).
class string - A class name to be added/removed
string - Add the attribute to allow toggling of the items.
string - The DOM id of the component.
[] array - Array containing wrapping classes array
[] array - Array containing keys and values rendered as attributes