How to change the color of selected row in ag grid? [duplicate]
Asked Answered
C

1

8

I need to change the selection color from blue(default color) to red bordered blue color in ag-grid.enter image description here

Refer the pic the blue color should be converted to thick blue with red border

Cavetto answered 8/3, 2019 at 10:3 Comment(0)
C
11

Add the following to your css

.ag-theme-balham .ag-row-selected {
    background-color: #4abbff;
}

.ag-theme-balham .ag-ltr .ag-cell-focus {
    border: 1px solid red;
}
Chacha answered 9/3, 2019 at 7:56 Comment(1)
.ag-theme-balham .ag-row-selected { background-color: #4abbff; } .ag-theme-balham .ag-ltr .ag-row-focus { border: 1px solid red; } Indtead of Cell I need Row. It worksCavetto

© 2022 - 2024 — McMap. All rights reserved.