Skip to content

Commit

Permalink
#2812, improve settings docs for accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
jlukic committed Aug 10, 2015
1 parent 9445939 commit c9c81e0
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions src/definitions/modules/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ $.fn.accordion = function(parameters) {
initialize: function() {
module.debug('Initializing', $module);
module.bind.events();
module.observeChanges();
if(settings.observeChanges) {
module.observeChanges();
}
module.instantiate();
},

Expand Down Expand Up @@ -546,22 +548,24 @@ $.fn.accordion.settings = {
verbose : false,
performance : true,

on : 'click',
on : 'click', // event on title that opens accordion

observeChanges : true, // whether accordion should automatically refresh on DOM insertion

exclusive : true,
collapsible : true,
closeNested : false,
animateChildren : true,
exclusive : true, // whether a single accordion content panel should be open at once
collapsible : true, // whether accordion content can be closed
closeNested : false, // whether nested content should be closed when a panel is closed
animateChildren : true, // whether children opacity should be animated

duration : 350,
easing : 'easeOutQuad',
duration : 350, // duration of animation
easing : 'easeOutQuad', // easing equation for animation


onOpening : function(){},
onOpen : function(){},
onClosing : function(){},
onClose : function(){},
onChange : function(){},
onOpening : function(){}, // callback before open animation
onOpen : function(){}, // callback after open animation
onClosing : function(){}, // callback before closing animation
onClose : function(){}, // callback after closing animation
onChange : function(){}, // callback after closing or opening animation

error: {
method : 'The method you called is not defined'
Expand Down

0 comments on commit c9c81e0

Please sign in to comment.