update entitiesDialog
This commit is contained in:
parent
fa7b385892
commit
2da7d165cb
1 changed files with 19 additions and 18 deletions
|
@ -16,7 +16,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
title: type.title
|
title: type.title
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
width: 248
|
width: 122
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
@ -24,19 +24,18 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
margin: '4px'
|
float: 'left',
|
||||||
|
margin: '4px 2px 4px 4px'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
$toolbar = Ox.Bar({size: 24})
|
|
||||||
.append($entitiesSelect),
|
|
||||||
|
|
||||||
$findInput = Ox.Input({
|
$findInput = Ox.Input({
|
||||||
clear: true,
|
clear: true,
|
||||||
placeholder: 'Find',
|
placeholder: 'Find',
|
||||||
width: 248
|
width: 122
|
||||||
})
|
})
|
||||||
.css({
|
.css({
|
||||||
margin: '4px'
|
float: 'left'
|
||||||
|
margin: '4px 4px 4px 2px'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: function(data) {
|
change: function(data) {
|
||||||
|
@ -52,6 +51,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
}),
|
}),
|
||||||
|
|
||||||
$listBar = Ox.Bar({size: 24})
|
$listBar = Ox.Bar({size: 24})
|
||||||
|
.append($entitiesSelect)
|
||||||
.append($findInput),
|
.append($findInput),
|
||||||
|
|
||||||
$list = Ox.TableList({
|
$list = Ox.TableList({
|
||||||
|
@ -108,20 +108,21 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
orientation: 'vertical'
|
orientation: 'vertical'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
$leftPanel = Ox.SplitPanel({
|
|
||||||
elements: [
|
|
||||||
{element: $toolbar, size: 24},
|
|
||||||
{element: $listPanel}
|
|
||||||
],
|
|
||||||
orientation: 'vertical'
|
|
||||||
}),
|
|
||||||
|
|
||||||
$entity = Ox.Element(),
|
$entity = Ox.Element(),
|
||||||
|
|
||||||
$itemMenu = Ox.MenuButton({
|
$itemMenu = Ox.MenuButton({
|
||||||
items: [
|
items: [
|
||||||
{'id': 'add', title: Ox._('Add Entity'), keyboard: 'control n'},
|
{
|
||||||
{'id': 'delete', title: Ox._('Delete Entity...'), keyboard: 'delete'}
|
'id': 'add',
|
||||||
|
title: Ox._('Add Entity'),
|
||||||
|
keyboard: 'control n'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'id': 'delete',
|
||||||
|
title: Ox._('Delete Entity...'),
|
||||||
|
disabled: true,
|
||||||
|
keyboard: 'delete'
|
||||||
|
}
|
||||||
],
|
],
|
||||||
title: 'set',
|
title: 'set',
|
||||||
tooltip: Ox._('Options'),
|
tooltip: Ox._('Options'),
|
||||||
|
@ -193,7 +194,7 @@ pandora.ui.entitiesDialog = function(options) {
|
||||||
$content = Ox.SplitPanel({
|
$content = Ox.SplitPanel({
|
||||||
elements: [
|
elements: [
|
||||||
{
|
{
|
||||||
element: $leftPanel,
|
element: $listPanel,
|
||||||
resizable: true,
|
resizable: true,
|
||||||
resize: [256, 384, 512],
|
resize: [256, 384, 512],
|
||||||
size: 256
|
size: 256
|
||||||
|
|
Loading…
Reference in a new issue