1
0
Fork 0
forked from 0x2620/oxjs

some work on ListCalendar

This commit is contained in:
rlx 2011-10-09 21:13:16 +00:00
commit efca832c76
10 changed files with 532 additions and 192 deletions

View file

@ -43,6 +43,7 @@ Ox.TextList <f:Ox.Element> TextList Object
Ox.TextList = function(options, self) {
// fixme: rename to TableList
// fixme: in columns, "operator" should be "sortOperator"
self = self || {};
var that = Ox.Element({}, self)
@ -553,10 +554,10 @@ Ox.TextList = function(options, self) {
if (value === null) {
value = '';
} else if (format) {
value = Ox.isObject(format) ?
Ox['format' + Ox.toTitleCase(format.type)]
.apply(this, Ox.merge([value], format.args || [])) :
format(value, data);
value = Ox.isObject(format)
? Ox['format' + Ox.toTitleCase(format.type)]
.apply(this, Ox.merge([value], format.args || []))
: format(value, data);
} else if (Ox.isArray(value)) {
value = value.join(', ');
}