Skip to content

Commit

Permalink
✨ v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phucbm committed Apr 4, 2022
1 parent 7cbce96 commit 93b8250
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
23 changes: 15 additions & 8 deletions build/easy-tab-accordion.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
/**!
* Easy Tab & Accordion v1.0.0
* @param options
* https://github.com/viivue/easy-tab-accordion
* MIT license - 2022
*/
class EasyTabAccordion{
constructor(options){
Expand All @@ -12,18 +13,24 @@ class EasyTabAccordion{
};
this.config = {
...{
el: document.querySelector(`[${this._attr.container}]`), // string selector
el: document.querySelector(`[${this._attr.container}]`), // DOM element
trigger: `[${this._attr.trigger}]`, // string selector
triggerAttr: this._attr.trigger, // attribute name
receiver: `[${this._attr.receiver}]`, // string selector
receiverAttr: this._attr.receiver, // attribute name
activeClass: this._class.active, animation: 'slide', // slide, fade
duration: 600, hash: false, liveBreakpoint: [], // [1920, 1024] => destroy if window.width if bigger than 1920 or less than 1024
duration: 600,
hash: false,
liveBreakpoint: [], // [1920, 1024] => destroy if window.width if bigger than 1920 or less than 1024
onBeforeOpen: (data, el) => {
}, onBeforeClose: (data, el) => {
}, onAfterOpen: (data, el) => {
}, onAfterClose: (data, el) => {
}, onAfterDestroy: (data, el) => {
},
onBeforeClose: (data, el) => {
},
onAfterOpen: (data, el) => {
},
onAfterClose: (data, el) => {
},
onAfterDestroy: (data, el) => {
},
}, ...options
}
Expand Down
6 changes: 6 additions & 0 deletions dist/easy-tab-accordion.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 93b8250

Please sign in to comment.