@ecl/generic-component-dropdown

Dropdown are elements that, when tapped, reveal additional content.

Stats

StarsIssuesVersionUpdatedCreatedSize
@ecl/generic-component-dropdown
1.9.02 years ago3 years agoMinified + gzip package size for @ecl/generic-component-dropdown in KB

Readme

Dropdowns

Dropdown components contain elements that, when tapped, reveal additional content.

Implementation notes

If you plan on using multiple dropdown components on the same page, make sure you give them unique IDs to the component itself but also to the button component that it contains. Initialization can be acheived like this:

ECL.initExpandables('#news-expandable-button1');
ECL.initExpandables('#news-expandable-button2');
ECL.dropdown('#dropdown1');
ECL.dropdown('#dropdown2');

Resources

Menu Button General Information

Examples:

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.