update example

This commit is contained in:
rolux 2012-06-22 09:54:38 +02:00
parent e8f3caff8e
commit 8be5ffbb2c

View file

@ -65,7 +65,7 @@ Ox.load('UI', function() {
$innerPanel = Ox.SplitPanel({ $innerPanel = Ox.SplitPanel({
elements: [ elements: [
{element: $main}, {element: $main},
{element: $list, size: 256} {element: $list, resizable: true, resize: [256], size: 256}
], ],
orientation: 'horizontal' orientation: 'horizontal'
}), }),
@ -79,7 +79,16 @@ Ox.load('UI', function() {
.appendTo(Ox.$body); .appendTo(Ox.$body);
function openDialog(data) { function openDialog(data) {
var $content = Ox.Element() var $button = Ox.Button({
id: 'close',
title: 'Close'
})
.bindEvent({
click: function() {
$dialog.close();
}
}),
$content = Ox.Element()
.css(getContentCSS(data)) .css(getContentCSS(data))
.append( .append(
Ox.FileInput({ Ox.FileInput({
@ -101,17 +110,7 @@ Ox.load('UI', function() {
}) })
), ),
$dialog = Ox.Dialog({ $dialog = Ox.Dialog({
buttons: [ buttons: [$button],
Ox.Button({
id: 'close',
title: 'Close'
})
.bindEvent({
click: function() {
$dialog.close();
}
})
],
content: $content, content: $content,
height: 129, height: 129,
keys: {escape: 'close'}, keys: {escape: 'close'},