1.2.0 • Published 4 years ago

saytum-toggle v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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
1.2.0

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago