1.2.0 • Published 4 years ago
saytum-toggle v1.2.0
Saytum toggle
Using
Install the library
$ yarn add saytum-toggle
Import the library and create an instance with settings
import SaytumToggle from 'saytum-toggle';
new SaytumToggle();
Use date attributes:
data-toggle-class // block class to show
data-toggle-timeout // delay before hiding the block (by default, the block is not hidden after a while)
data-toggle-add-class // add class when opening block
data-toggle-item-only // disable closing an item by clicking outside the area