Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在我的代码中强制网格有一个突出显示的行,我知道没有属性可以做到这一点。(只有一个选择)我该如何解决?
如果 'rowId' 是要突出显示的行的索引,则
grid.row(rowId).node().style.backgroundColor = 'green';
如果您已经覆盖了单元格的样式,那么仅应用于行不会有任何效果。然后你必须遍历行内的单元格并突出显示单元格
cellNode.style.backgroundColor = 'green';