【发布时间】:2015-12-15 13:25:26
【问题描述】:
我正在从旧版本的 HandsOnTable 升级,但在获取单元格函数中的 HoT 对象时遇到了一些问题,例如:
cells: function (row, col, prop) {
var cellProperties = {};
cellProperties.className = 'htMiddle htCenter';
if (hot.getDataAtRowProp(row, "Team") == "Boston Celtics")
console.log("Celtics");
return cellProperties;
}
未捕获的类型错误:无法读取未定义的属性“getDataAtRowProp”
到那时HoT对象不应该可用吗?
我要做的是检查特定单元格的值,以了解是否应该更改此列的渲染器。
【问题讨论】: