9
9
declare module JQueryUI {
10
10
// Accordion //////////////////////////////////////////////////
11
11
12
- interface AccordionOptions {
12
+ interface AccordionOptions extends AccordionEvents {
13
13
active ?: any ; // boolean or number
14
14
animate ?: any ; // boolean, number, string or object
15
15
collapsible ?: boolean ;
@@ -37,7 +37,7 @@ declare module JQueryUI {
37
37
create ?: AccordionEvent ;
38
38
}
39
39
40
- interface Accordion extends Widget , AccordionOptions , AccordionEvents {
40
+ interface Accordion extends Widget , AccordionOptions {
41
41
}
42
42
43
43
@@ -342,7 +342,7 @@ declare module JQueryUI {
342
342
343
343
interface DialogOptions extends DialogEvents {
344
344
autoOpen ?: boolean ;
345
- buttons ?: { [ buttonText : string ] : ( event ?: Event ) => void } | ButtonOptions [ ] ;
345
+ buttons ?: { [ buttonText : string ] : ( event ?: Event ) => void } | DialogButtonOptions [ ] ;
346
346
closeOnEscape ?: boolean ;
347
347
closeText ?: string ;
348
348
dialogClass ?: string ;
@@ -366,6 +366,14 @@ declare module JQueryUI {
366
366
close ?: DialogEvent ;
367
367
}
368
368
369
+ interface DialogButtonOptions {
370
+ icons ?: any ;
371
+ showText ?: string | boolean ;
372
+ text ?: string ;
373
+ click ?: ( eventObject : JQueryEventObject ) => any ;
374
+ [ attr : string ] : any ; // attributes for the <button> element
375
+ }
376
+
369
377
interface DialogShowHideOptions {
370
378
effect : string ;
371
379
delay ?: number ;
@@ -517,9 +525,10 @@ declare module JQueryUI {
517
525
518
526
// Progressbar //////////////////////////////////////////////////
519
527
520
- interface ProgressbarOptions {
528
+ interface ProgressbarOptions extends ProgressbarEvents {
521
529
disabled ?: boolean ;
522
530
value ?: number | boolean ;
531
+ max ?: number ;
523
532
}
524
533
525
534
interface ProgressbarUIParams {
@@ -535,7 +544,7 @@ declare module JQueryUI {
535
544
create ?: ProgressbarEvent ;
536
545
}
537
546
538
- interface Progressbar extends Widget , ProgressbarOptions , ProgressbarEvents {
547
+ interface Progressbar extends Widget , ProgressbarOptions {
539
548
}
540
549
541
550
@@ -793,7 +802,7 @@ declare module JQueryUI {
793
802
794
803
// Tooltip //////////////////////////////////////////////////
795
804
796
- interface TooltipOptions {
805
+ interface TooltipOptions extends TooltipEvents {
797
806
content ?: any ; // () or string
798
807
disabled ?: boolean ;
799
808
hide ?: any ; // boolean, number, string or object
@@ -816,7 +825,7 @@ declare module JQueryUI {
816
825
open ?: TooltipEvent ;
817
826
}
818
827
819
- interface Tooltip extends Widget , TooltipOptions , TooltipEvents {
828
+ interface Tooltip extends Widget , TooltipOptions {
820
829
}
821
830
822
831
0 commit comments