mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
jQueryUI: Finished the c's
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Vendored
+48
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user