@ecl/ec-component-dropdown

1.10.0 • Public • Published

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:

Package Sidebar

Install

npm i @ecl/ec-component-dropdown

Weekly Downloads

87

Version

1.10.0

License

EUPL-1.1

Unpacked Size

6.65 kB

Total Files

8

Last publish

Collaborators

  • papegaill
  • yhuard
  • kalin.chernev
  • weslito
  • emeryro
  • planctus