* @return {HTMLElement} Rendered element.
*/
renderFunction_: function(dataItem, columnId, table) {
- var div = table.ownerDocument.createElement('div');
+ var div = /** @type {HTMLElement} */
+ (table.ownerDocument.createElement('div'));
div.textContent = dataItem[columnId];
return div;
},
/**
* Renders table header. This is the default render function.
* @param {cr.ui.Table} table The table.
- * @return {HTMLElement} Rendered element.
+ * @return {Text} Rendered text node.
*/
headerRenderFunction_: function(table) {
return table.ownerDocument.createTextNode(this.name);
/**
* The column render function.
- * @type {Function(*, string, cr.ui.Table): HTMLElement}
+ * @type {function(*, string, cr.ui.Table): HTMLElement}
*/
cr.defineProperty(TableColumn, 'renderFunction');
/**
* The column header render function.
- * @type {Function(cr.ui.Table): HTMLElement}
+ * @type {function(cr.ui.Table): Text}
*/
cr.defineProperty(TableColumn, 'headerRenderFunction');