forked from 0x2620/oxjs
some work on ListCalendar
This commit is contained in:
parent
2928058f87
commit
efca832c76
10 changed files with 532 additions and 192 deletions
|
|
@ -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(', ');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue