Ox.FormPanel: add listSize option
This commit is contained in:
parent
92566171e8
commit
c9bbdec039
1 changed files with 4 additions and 5 deletions
|
@ -14,7 +14,8 @@ Ox.FormPanel = function(options, self) {
|
||||||
self = self || {};
|
self = self || {};
|
||||||
var that = Ox.Element({}, self)
|
var that = Ox.Element({}, self)
|
||||||
.defaults({
|
.defaults({
|
||||||
form: []
|
form: [],
|
||||||
|
listSize: 256
|
||||||
})
|
})
|
||||||
.options(options || {});
|
.options(options || {});
|
||||||
|
|
||||||
|
@ -64,7 +65,7 @@ Ox.FormPanel = function(options, self) {
|
||||||
selected: [self.options.form[0].id],
|
selected: [self.options.form[0].id],
|
||||||
sort: [{key: 'id', operator: '+'}],
|
sort: [{key: 'id', operator: '+'}],
|
||||||
unique: 'id',
|
unique: 'id',
|
||||||
width: 256
|
width: self.options.listSize
|
||||||
}).bindEvent({
|
}).bindEvent({
|
||||||
select: function(data) {
|
select: function(data) {
|
||||||
self.$sections[self.section].hide();
|
self.$sections[self.section].hide();
|
||||||
|
@ -135,9 +136,7 @@ Ox.FormPanel = function(options, self) {
|
||||||
elements: [
|
elements: [
|
||||||
{
|
{
|
||||||
element: self.$list,
|
element: self.$list,
|
||||||
resizable: true,
|
size: self.options.listSize
|
||||||
resize: [256],
|
|
||||||
size: 256
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
element: self.$section
|
element: self.$section
|
||||||
|
|
Loading…
Reference in a new issue