mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge pull request #5673 from errorx666/jqueryui-buttonoptions
Update JQueryUI ButtonOptions interface
This commit is contained in:
@@ -1438,6 +1438,7 @@ function test_dialog() {
|
||||
});
|
||||
$(".selector").dialog({ autoOpen: false });
|
||||
$(".selector").dialog({ buttons: { Ok: function () { $(this).dialog("close"); } } });
|
||||
$(".selector").dialog({ buttons: [ { text: "Ok", click: function () { $(this).dialog("close"); } } ] } );
|
||||
$(".selector").dialog({ closeOnEscape: false });
|
||||
$(".selector").dialog({ closeText: "hide" });
|
||||
$(".selector").dialog({ dialogClass: "alert" });
|
||||
|
||||
Vendored
+2
-1
@@ -86,7 +86,8 @@ declare module JQueryUI {
|
||||
disabled?: boolean;
|
||||
icons?: any;
|
||||
label?: string;
|
||||
text?: boolean;
|
||||
text?: string|boolean;
|
||||
click?: (event?: Event) => void;
|
||||
}
|
||||
|
||||
interface Button extends Widget, ButtonOptions {
|
||||
|
||||
Reference in New Issue
Block a user