From ead8376ca80553332af7872f9fe723c6fbb4e412 Mon Sep 17 00:00:00 2001 From: Naveen Kumar Date: Wed, 14 Dec 2016 11:41:25 +0530 Subject: [PATCH] Add autohide and enddate in jqueryui.d.ts (#13330) Added autohide and enddate in Datepickeroptions interface --- jqueryui/index.d.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/jqueryui/index.d.ts b/jqueryui/index.d.ts index 808148cfbe..d74cc76c66 100644 --- a/jqueryui/index.d.ts +++ b/jqueryui/index.d.ts @@ -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 *