1
如果任何单元格值为空,如何更改背景?此功能仅改变TD背景,而不是整行。HandsonTable条件格式
function invalidRowRenderer(instance, td, row, col, prop, value, cellProperties) {
Handsontable.renderers.TextRenderer.apply(this, arguments);
td.style.fontWeight = 'bold';
td.style.background = '#A9A9A9';
}
我对handsontable不熟悉,但参数'row'是对'
回答
如果你想改变整个父行的颜色,你可以这样做:
这将样式应用到
td
的父母这是tr
这是行。来源
2015-07-21 20:05:26 ZekeDroid
相关问题