Ag网格,浮动行怎么样?

时间:2016-08-31 21:24:38

标签: ag-grid ag-grid-react

有没有办法为浮动行设置样式,比如floatCellStyle?我看到有一个floatingCellRenderer,但没有专门针对样式。

1 个答案:

答案 0 :(得分:0)

嗯,有点晚了,但这是一个答案...... 您可以按照getRowStyle将样式设置为gridOptions

getRowStyle: function(params) {
  if (params.node.floating) {
    return {'font-weight': 'bold'}
  }
}

来源:ag-Grid Documentation

相关问题