head.js revision d15134141197c4fc93eb6094020e03eb72aa8d73
// -- Instance properties -------------------------------------------------
'<th id="{_yuid}" abbr="{abbr}" ' +
'colspan="{colspan}" rowspan="{rowspan}">' +
'<div class="{linerClass}">' +
'{content}' +
'</div>' +
'</th>',
'<tr>{content}</tr>',
'<thead class="{classes}">{content}</thead>',
// -- Public methods ------------------------------------------------------
bindUI: function () {
this._eventHandles.push(
['*:change', '*:destroy'],
this._afterDataChange, this));
},
destructor: function () {
},
initializer: function (config) {
this._eventHandles = [];
},
render: function () {
defaults = {
abbr: '',
colspan: 1,
rowspan: 1,
// TODO: remove dependence on this.host
},
if (!thead) {
thead = '';
html = '';
Y.merge(
col, {
("Column " + j)
}
));
}
});
}
}
});
}
if (existing) {
if (replace) {
}
} else {
}
this.bindUI();
return this;
},
// -- Protected and private methods ---------------------------------------
_afterColumnChange: function (e) {
// TODO
},
_afterDataChange: function (e) {
// TODO
},
_parseColumns: function (data) {
var columns = [],
rowStack = [],
index = [],
rowSpan = 1,
// First pass, assign colspans and calculate row count for
// non-nested headers' rowspan
if (typeof col === 'string') {
}
// break to let the while loop process the children
break;
} else {
}
}
if (i >= len) {
// All columns in this row are processed
// The parent column
// Can't use .length because in 3+ rows, colspan
// needs to aggregate the colspans of children
// Assign the parent column for ease of navigation
}
}
}
}
// Second pass, build row arrays and assign rowspan
for (i = 0; i < rowSpan; ++i) {
}
// break to let the while loop process the children
break;
} else {
// collect the IDs of parent cols
}
}
}
if (i >= len) {
// All columns in this row are processed
}
}
}
return columns;
}
});