I am running into an issue being able to set a row background color based on a value in that row. In my case it is called updateFlag and if the value for this row is true i want to set the row background to something other then the default white. What makes this a bit harder for me to figure out is that we use ag grid in a very modular approach. I have a ag-grid-base.component which does the basic setup of each grid via @inputs and has a few @outputs like onRowClickAction etc. then the component which actually wants to use the grid implements the ag-grid-base.component. In the component i have a function which loads the column definitions from a backend and then adds a Action column which has icons.
createColumnDefs(columnsList: IGridColumnAgGrid[] = this.columnsList) {
this.supplementaryColumnDefs = [
{
headerName: 'Actions',
width: 70,
sortable: false,
suppressMenu: true,
cellRendererFramework: ActionsRendererComponent,
pinned: 'right',
},
];
}
So what i am looking for is where and how would i specify the background color of a row based on a value of a given row like in my case updateFlag = true