Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e47eb8f
Adds the Duration option which allows specifying the show/hide
benjamin-albert Sep 30, 2015
918296b
Merge remote-tracking branch 'origin/master'
benjamin-albert Sep 30, 2015
befca8c
Added Animation, ShowAnim and HideAnim options which allows the
benjamin-albert Sep 30, 2015
3a25847
Adds the MonthFormat option which allows specifying the
Oct 1, 2015
f7a9d0b
Makes the default animation options consistent with datepicker +
benjamin-albert Oct 2, 2015
67da55d
Makes perssing enter choose the current month + make escape close
benjamin-albert Oct 2, 2015
fe5d54f
Merge remote-tracking branch 'upstream/master'
benjamin-albert Oct 2, 2015
05e3035
Added documentation for new options + added a VERSION constant +
benjamin-albert Oct 2, 2015
5e880c4
Update README.md
benjamin-albert Oct 2, 2015
beb3ad0
Update README.md
benjamin-albert Oct 2, 2015
0a3079c
Update README.md
benjamin-albert Oct 2, 2015
ddc5ff0
Update README.md
benjamin-albert Oct 2, 2015
0cc0d06
Added since version 2.4 for new options
benjamin-albert Oct 2, 2015
abfb242
Fixed typos in MonthFormat documentation
benjamin-albert Oct 2, 2015
22b40cb
Update README.md
benjamin-albert Oct 2, 2015
2dd5b41
Removed repeated sentence in MonthFormat documentation
benjamin-albert Oct 2, 2015
a3d4f85
Fixed broken GetSelectdYear unit test and added an alternative
benjamin-albert Oct 2, 2015
892ac8d
Fixed broken GetSelectdYear unit test and added an alternative
benjamin-albert Oct 2, 2015
4393ab8
Merge remote-tracking branch 'origin/master'
benjamin-albert Oct 3, 2015
9d3a5fe
Added documenation for Duration option + fixed inccorect setter examples
benjamin-albert Oct 3, 2015
2a4f17a
Allows the user to disable a animations by passing in none
benjamin-albert Oct 3, 2015
8145dc4
Update README.md
benjamin-albert Oct 3, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added documenation for Duration option + fixed inccorect setter examples
  • Loading branch information
benjamin-albert committed Oct 3, 2015
commit 9d3a5fefd6a840a1842e825d38aa32fccbf17aa7
44 changes: 38 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,45 @@ $('.selector').MonthPicker('option', 'UseInputMask', false );
Get or set the option, after init.
<pre>
//getter
var disabled = $('.selector').MonthPicker('option', 'Animation');
var Animation = $('.selector').MonthPicker('option', 'Animation');

//setter
$('.selector').MonthPicker('option', Animation: 'slideToggle' );
$('.selector').MonthPicker('option', 'Animation', 'slideToggle' );
</pre>
</p>

<p>
<h3>Duration</h3>
Type: Number or String<br />
Default: 'fadeToggle'<br />
Supported values: ['normal', 'fast', 'slow'] or number of milliseconds<br />
Since: 2.4</br>
Sets the speed of the animation used to open and close the menu.
</p>
<p>
You choose from three predefined speeds:
<ul>
<li>normal (the default) 400ms</li>
<li>fast 200ms</li>
<li>slow 600ms</li>
<li>0 disables animation</li>
</ul>

Or you can specify the speed in milliseconds by passing in a number.
</p>
<p>
Set the option upon init.
<pre>$('.selector').MonthPicker({ Duration: 'fast' });</pre>

Get or set the option, after init.
<pre>
//getter
var Duration = $('.selector').MonthPicker('option', 'Duration');

//setter
$('.selector').MonthPicker('option', 'Duration', 'fast' );
</pre>
</p>

<p>
<h3>ShowAnim</h3>
Expand All @@ -326,10 +358,10 @@ $('.selector').MonthPicker('option', Animation: 'slideToggle' );
Get or set the option, after init.
<pre>
//getter
var disabled = $('.selector').MonthPicker('option', 'ShowAnim');
var ShowAnim = $('.selector').MonthPicker('option', 'ShowAnim');

//setter
$('.selector').MonthPicker('option', ShowAnim: 'slideDown' );
$('.selector').MonthPicker('option', 'ShowAnim', 'slideDown' );
</pre>
</p>

Expand All @@ -356,10 +388,10 @@ $('.selector').MonthPicker('option', ShowAnim: 'slideDown' );
Get or set the option, after init.
<pre>
//getter
var disabled = $('.selector').MonthPicker('option', 'HideAnim');
var HideAnim = $('.selector').MonthPicker('option', 'HideAnim');

//setter
$('.selector').MonthPicker('option', HideAnim: 'slideUp' );
$('.selector').MonthPicker('option', 'HideAnim', 'slideUp' );
</pre>
</p>

Expand Down