-
Notifications
You must be signed in to change notification settings - Fork 76
Animation Option
Benjamin Albert edited this page Feb 4, 2016
·
3 revisions
Type: String
Default: 'fadeToggle'
Supported values: ['fadeToggle', 'slideToggle', 'none']
Since: 2.4
Sets the animation to use when the menu both opens and closes, you can disable animation
by passing in none.
If you want to have different animations for opening and closing the menu see the ShowAnim and HideAnim options.
Set the option upon init.
$('.selector').MonthPicker({ Animation: 'slideToggle' });
Get or set the option, after init.
//getter var Animation = $('.selector').MonthPicker('option', 'Animation'); //setter $('.selector').MonthPicker('option', 'Animation', 'slideToggle' );