mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-29 12:40:34 +08:00
jQueryUI: started adding option overloads
This commit is contained in:
1 parent
739e9fd044
commit
9480db2645
2 files changed
+54
-7
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user