jQueryUI: Finished the c's

This commit is contained in:
John Reilly
2014-04-23 17:08:19 +01:00
parent b03204e6f0
commit f1d0dcabb7
2 changed files with 75 additions and 0 deletions
+27
View File
@@ -1288,6 +1288,33 @@ function test_datepicker() {
// setter
var $set: JQuery = $(".selector").datepicker("option", "changeYear", true);
}
function closeText() {
$(".selector").datepicker({ closeText: "Close" });
var closeText: string = $(".selector").datepicker("option", "closeText");
// setter
var $set: JQuery = $(".selector").datepicker("option", "closeText", "Close");
}
function constrainInput() {
$(".selector").datepicker({ constrainInput: false });
var constrainInput: boolean = $(".selector").datepicker("option", "constrainInput");
// setter
var $set: JQuery = $(".selector").datepicker("option", "constrainInput", false);
}
function currentText() {
$(".selector").datepicker({ currentText: "Now" });
var currentText: string = $(".selector").datepicker("option", "currentText");
// setter
var $set: JQuery = $(".selector").datepicker("option", "currentText", "Now");
}
}
+48
View File
@@ -1322,6 +1322,54 @@ interface JQuery {
*/
datepicker(methodName: 'option', optionName: 'changeYear', changeYearValue: boolean): JQuery;
/**
* Get the closeText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
*/
datepicker(methodName: 'option', optionName: 'closeText'): string;
/**
* Set the closeText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
* @param closeTextValue The text to display for the close link. Use the showButtonPanel option to display this button.
*/
datepicker(methodName: 'option', optionName: 'closeText', closeTextValue: string): JQuery;
/**
* Get the constrainInput option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
*/
datepicker(methodName: 'option', optionName: 'constrainInput'): boolean;
/**
* Set the constrainInput option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
* @param constrainInputValue When true, entry in the input field is constrained to those characters allowed by the current dateFormat option.
*/
datepicker(methodName: 'option', optionName: 'constrainInput', constrainInputValue: boolean): JQuery;
/**
* Get the currentText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
*/
datepicker(methodName: 'option', optionName: 'currentText'): string;
/**
* Set the currentText option, after initialization
*
* @param methodName 'option'
* @param optionName 'buttonText'
* @param currentTextValue The text to display for the current day link. Use the showButtonPanel option to display this button.
*/
datepicker(methodName: 'option', optionName: 'currentText', currentTextValue: string): JQuery;
/**
* Gets the value currently associated with the specified optionName.
*