| 1 |
define( [ |
| 2 |
"lib/common", |
| 3 |
"ui/widgets/dialog" |
| 4 |
], function( common ) { |
| 5 |
|
| 6 |
common.testWidget( "dialog", { |
| 7 |
defaults: { |
| 8 |
appendTo: "body", |
| 9 |
autoOpen: true, |
| 10 |
buttons: [], |
| 11 |
classes: { |
| 12 |
"ui-dialog": "ui-corner-all", |
| 13 |
"ui-dialog-titlebar": "ui-corner-all" |
| 14 |
}, |
| 15 |
closeOnEscape: true, |
| 16 |
closeText: "Close", |
| 17 |
disabled: false, |
| 18 |
draggable: true, |
| 19 |
height: "auto", |
| 20 |
hide: null, |
| 21 |
maxHeight: null, |
| 22 |
maxWidth: null, |
| 23 |
minHeight: 150, |
| 24 |
minWidth: 150, |
| 25 |
modal: false, |
| 26 |
position: { |
| 27 |
my: "center", |
| 28 |
at: "center", |
| 29 |
of: window, |
| 30 |
collision: "fit", |
| 31 |
using: $.ui.dialog.prototype.options.position.using |
| 32 |
}, |
| 33 |
resizable: true, |
| 34 |
show: null, |
| 35 |
title: null, |
| 36 |
uiDialogTitleHeadingLevel: 0, |
| 37 |
width: 300, |
| 38 |
|
| 39 |
|
| 40 |
beforeClose: null, |
| 41 |
close: null, |
| 42 |
create: null, |
| 43 |
drag: null, |
| 44 |
dragStart: null, |
| 45 |
dragStop: null, |
| 46 |
focus: null, |
| 47 |
open: null, |
| 48 |
resize: null, |
| 49 |
resizeStart: null, |
| 50 |
resizeStop: null |
| 51 |
} |
| 52 |
} ); |
| 53 |
|
| 54 |
} ); |