update example
This commit is contained in:
parent
e8f3caff8e
commit
8be5ffbb2c
1 changed files with 12 additions and 13 deletions
|
@ -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'},
|
||||||
|
|
Loading…
Add table
Reference in a new issue