1.0.0 • Published 4 years ago

dropdown_button_module v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Dropdown Button Module

This is a simple module which adds an event listener to the browser document which shows any dropdown content when a dropdown button is clicked.

In order to use this, ensure that:

  • your HTML dropdown button has a class of "dropbtn".
  • a div with a class "dropdown-content" directly after the "dropbtn".
  • both the above elements are wrapped in an outer div with class "dropdown".