jQueryUI: started adding option overloads

This commit is contained in:
John Reilly
2014-04-16 13:59:31 +01:00
parent 739e9fd044
commit 9480db2645
2 changed files with 54 additions and 7 deletions
+12
View File
@@ -1153,6 +1153,18 @@ function test_datepicker() {
var $setDate2: JQuery = $(".selector").datepicker("setDate", new Date());
var $shown: JQuery = $(".selector").datepicker("show");
var $widget: JQuery = $(".selector").datepicker("widget");
// Options
function altField() {
$(".selector").datepicker({ altField: "#actualDate" });
// getter
var altField = $(".selector").datepicker("option", "altField");
// setter
$(".selector").datepicker("option", "altField", "#actualDate");
}
}