mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Made dialog options extend events type, test should have had button callbacks within 'buttons' in 'jqueryui'.
This commit is contained in:
@@ -1425,12 +1425,13 @@ function test_dialog() {
|
||||
height: 300,
|
||||
width: 350,
|
||||
modal: true,
|
||||
buttons: {},
|
||||
Cancel: function () {
|
||||
$(this).dialog("close");
|
||||
},
|
||||
close: function () {
|
||||
var $el = $(this).dialog("destroy");
|
||||
buttons: {
|
||||
Cancel: function () {
|
||||
$(this).dialog("close");
|
||||
},
|
||||
close: function () {
|
||||
var $el = $(this).dialog("destroy");
|
||||
}
|
||||
}
|
||||
});
|
||||
$("#dialog-message").dialog({
|
||||
|
||||
6
jqueryui/jqueryui.d.ts
vendored
6
jqueryui/jqueryui.d.ts
vendored
@@ -336,9 +336,9 @@ declare module JQueryUI {
|
||||
|
||||
// Dialog //////////////////////////////////////////////////
|
||||
|
||||
interface DialogOptions {
|
||||
interface DialogOptions extends DialogEvents {
|
||||
autoOpen?: boolean;
|
||||
buttons?: any; // object or []
|
||||
buttons?: { [buttonText: string]: () => void } | ButtonOptions[];
|
||||
closeOnEscape?: boolean;
|
||||
closeText?: string;
|
||||
dialogClass?: string;
|
||||
@@ -382,7 +382,7 @@ declare module JQueryUI {
|
||||
resizeStop?: DialogEvent;
|
||||
}
|
||||
|
||||
interface Dialog extends Widget, DialogOptions, DialogEvents {
|
||||
interface Dialog extends Widget, DialogOptions {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user