in Ox.TreeList, use OxLight style for length of arrays and objects
This commit is contained in:
parent
c2a7902d0b
commit
1d53a14cc1
1 changed files with 4 additions and 3 deletions
|
@ -26,10 +26,10 @@ Ox.TreeList = function(options, self) {
|
|||
.defaults({
|
||||
data: null,
|
||||
items: [],
|
||||
max: -1,
|
||||
max: 1,
|
||||
min: 0,
|
||||
selected: [],
|
||||
width: 256
|
||||
width: 'auto'
|
||||
})
|
||||
.options(options || {});
|
||||
|
||||
|
@ -162,7 +162,8 @@ Ox.TreeList = function(options, self) {
|
|||
},
|
||||
type = Ox.typeOf(value);
|
||||
if (type == 'array' || type == 'object') {
|
||||
ret.title += Ox.toTitleCase(type) + ' [' + Ox.len(value) + ']';
|
||||
ret.title += Ox.toTitleCase(type)
|
||||
+ ' <span class="OxLight">[' + Ox.len(value) + ']</span>';
|
||||
ret.items = Ox.map(Ox.sort(Ox.keys(value)), function(k) {
|
||||
return parseData(k, value[k]);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue