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({
elements: [
{element: $main},
{element: $list, size: 256}
{element: $list, resizable: true, resize: [256], size: 256}
],
orientation: 'horizontal'
}),
@ -79,7 +79,16 @@ Ox.load('UI', function() {
.appendTo(Ox.$body);
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))
.append(
Ox.FileInput({
@ -101,17 +110,7 @@ Ox.load('UI', function() {
})
),
$dialog = Ox.Dialog({
buttons: [
Ox.Button({
id: 'close',
title: 'Close'
})
.bindEvent({
click: function() {
$dialog.close();
}
})
],
buttons: [$button],
content: $content,
height: 129,
keys: {escape: 'close'},