@insite/accordion
v0.0.1
Published
Accordion
Downloads
2
Readme
@insite/Accordion.js
Transforme un ou plusieurs menu(s) drupal en accordéon
Installation
- Via npm :
yarn add @insite/accordion
@param {HTMLElement} container
@param {Object} options
- oneByOne: false
- buttonClass: "button button--accordion"
- accordionClass: 'cp-accordion'
- sectionSelector: '.menu-item--expanded'
Usage :
new Accordion(this.overlayMenu, {
oneByOne: true
});