【问题标题】:How to change the color of selected row in ag grid? [duplicate]如何更改 ag 网格中选定行的颜色? [复制]
【发布时间】:2019-07-30 08:16:40
【问题描述】:

我需要在 ag-grid 中将选择颜色从蓝色(默认颜色)更改为带红色边框的蓝色。

请参考图片,蓝色应转换为带有红色边框的粗蓝色

【问题讨论】:

    标签: ag-grid ag-grid-react ag-grid-angular


    【解决方案1】:

    将以下内容添加到您的 css 中

    .ag-theme-balham .ag-row-selected {
        background-color: #4abbff;
    }
    
    .ag-theme-balham .ag-ltr .ag-cell-focus {
        border: 1px solid red;
    }
    

    【讨论】:

    • .ag-theme-balham .ag-row-selected { 背景色:#4abbff; } .ag-theme-balham .ag-ltr .ag-row-focus { 边框:1px 纯红色;我需要行而不是单元格。它有效
    猜你喜欢
    • 2021-06-08
    • 2015-02-13
    • 2019-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-09-06
    • 1970-01-01
    相关资源
    最近更新 更多