I'm trying to do something really simple. I'm just trying to change the background colour of my rows dynamically (the idea is to later implement this when expanding/contracting groups).
I'm currently trying to implement gridOptions.getRowClass(), but it can't seem to find my CSS. When I set a background property using getRowStyle() it works, but I need to use getRowClass() for what I plan on doing in the future with groups.
This works:
this.gridOptions.getRowStyle() = function(params) { return { background-color: 'red' } }
This does not:
this.gridOptions.getRowClass() = function(params) { return 'my-css-class' }
With CSS:
.my-css-class {
background-color: red !important;
}
The CSS is in my <style> section and the functions are in beforeMount().