basic-dropdown-kb
v1.0.0
Published
Add basic dropdown functionality to show/hide the dropdown's content for all the dropdown on the page.
Readme
Basic Dropdown KB
Add basic dropdown functionality to show/hide the dropdown's content for all the dropdown on the page.
How to use
- Add dropdown container's markup on the page with the class
dropdown. - Add markup for the dropdown content toggler button as a child of the dropdown container. The button should have a class value
dropdown-togglerand a data attributedata-dropdown-targetwhich would contain the id of the dropdown content for this dropdown. - Add markup for the dropdown content as a child of the dropdown container besides the toggle button. The dropdown content should have the class attribute with the value
dropdown-contentand an id attribute whose value will be used in the toggle button'sdata-dropdown-targetattribute.
