File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1438,6 +1438,7 @@ function test_dialog() {
1438
1438
} ) ;
1439
1439
$ ( ".selector" ) . dialog ( { autoOpen : false } ) ;
1440
1440
$ ( ".selector" ) . dialog ( { buttons : { Ok : function ( ) { $ ( this ) . dialog ( "close" ) ; } } } ) ;
1441
+ $ ( ".selector" ) . dialog ( { buttons : [ { text : "Ok" , click : function ( ) { $ ( this ) . dialog ( "close" ) ; } } ] } ) ;
1441
1442
$ ( ".selector" ) . dialog ( { closeOnEscape : false } ) ;
1442
1443
$ ( ".selector" ) . dialog ( { closeText : "hide" } ) ;
1443
1444
$ ( ".selector" ) . dialog ( { dialogClass : "alert" } ) ;
Original file line number Diff line number Diff line change @@ -86,7 +86,8 @@ declare module JQueryUI {
86
86
disabled ?: boolean ;
87
87
icons ?: any ;
88
88
label ?: string ;
89
- text ?: boolean ;
89
+ text ?: string | boolean ;
90
+ click ?: ( event ?: Event ) => void ;
90
91
}
91
92
92
93
interface Button extends Widget , ButtonOptions {
You can’t perform that action at this time.
0 commit comments