mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Merge pull request #29006 from masiama/patch-2
[pikaday] Add missing second parameter for setMoment
This commit is contained in:
Vendored
+1
-1
@@ -54,7 +54,7 @@ declare class Pikaday {
|
||||
/**
|
||||
* Set the current selection with a Moment.js object (see setDate).
|
||||
*/
|
||||
setMoment(moment: any): void;
|
||||
setMoment(moment: any, preventOnSelect?: boolean): void;
|
||||
|
||||
/**
|
||||
* Change the current view to see a specific date.
|
||||
|
||||
@@ -32,6 +32,7 @@ new Pikaday({field: $('#datepicker')[0]});
|
||||
picker.setDate('2015-01-01');
|
||||
picker.getMoment();
|
||||
picker.setMoment(moment('14th February 2014', 'DDo MMMM YYYY'));
|
||||
picker.setMoment(moment('14th February 2014', 'DDo MMMM YYYY'), true);
|
||||
picker.gotoDate(new Date(2014, 1));
|
||||
picker.gotoToday();
|
||||
picker.gotoMonth(2);
|
||||
|
||||
Reference in New Issue
Block a user