1.0.1 • Published 5 years ago

npm-dropdown-setup v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

What is this?

Create one or more dropdown menus which can be layered.

Installation

npm install npm-dropdown-setup --save

import setUpDropdown from 'npm-dropdown-setup';

const setUpDropdown = require('npm-dropdown-setup);

setUpDropdown('./#trigger-identifier', 'dropdown-content-class', 'new-class');

Notes

Make sure that the class names for the dropdown content and the style which will be applied are passed to the function without dots in the beginning.