Add autohide and enddate in jqueryui.d.ts (#13330)

Added autohide and enddate in Datepickeroptions interface
This commit is contained in:
Naveen Kumar
2016-12-13 22:11:25 -08:00
committed by Mohamed Hegazy
parent 0a8e31370e
commit ead8376ca8
+25
View File
@@ -320,6 +320,14 @@ declare namespace JQueryUI {
* Additional text to display after the year in the month headers.
*/
yearSuffix?: string;
/**
* Set to true to automatically hide the datepicker.
*/
autohide?: boolean;
/**
* Set to date to automatically enddate the datepicker.
*/
endDate?: Date;
}
interface DatepickerFormatDateOptions {
@@ -1341,6 +1349,23 @@ interface JQuery {
* @param optionName 'buttonText'
*/
datepicker(methodName: 'option', optionName: 'buttonText'): string;
/**
* Get the autohide option, after initialization
*
* @param methodName 'option'
* @param optionName 'autohide'
*/
datepicker(methodName: 'option', optionName: 'autohide'): boolean;
/**
* Get the endDate after initialization
*
* @param methodName 'option'
* @param optionName 'endDate'
*/
datepicker(methodName: 'option', optionName: 'endDate'): Date;
/**
* Set the buttonText option, after initialization
*