Skip to content

Duration Option

Ryan Segura edited this page Feb 4, 2016 · 3 revisions

Type: Number or String
Default: 'fadeToggle'
Supported values: ['normal', 'fast', 'slow'] or number of milliseconds
Since: 2.4
Sets the speed of the animation used to open and close the menu.

Choose from three predefined speeds:

  • normal (the default) 400ms
  • fast 200ms
  • slow 600ms
Or you can specify the speed in milliseconds by passing in a number. 

Set the option upon init.

$('.selector').MonthPicker({ Duration: 'fast' });
Get or set the option, after init. 
//getter var Duration = $('.selector').MonthPicker('option', 'Duration'); //setter $('.selector').MonthPicker('option', 'Duration', 'fast' ); 
Clone this wiki locally