myg-dropdown
v0.13.8
Published
Myg dropdown component
Downloads
13
Readme
Dropdowns
Usage
Stylesheets
@import "myg-dropdown/dropdown"
// Include classes (optional)
+myg__classes--dropdown
Javascript
import MygDropdown from 'myg-dropdown';
document.addEventListener( 'ready', () => {
const mygDropdowns = MygDropdown.initAll( document.querySelectorAll('.myg-dropdown'), {} );
})
or
import * as myg from 'myg/src/myg';
const MygDropdown = myg.MygDropdown;
document.addEventListener( 'ready', () => {
const mygDropdowns = MygDropdown.initAll( document.querySelectorAll('.myg-dropdown'), {} );
})