I'm following the formatting example shown here:
http://6pac.github.io/SlickGrid/examples/example2-formatters.html
As per the example, the statusFormatter can return addClasses, removeClasses, text and tooltip. However, in my case, the user defines the conditions, and the formatting. For example, through a settings page, the user could specify:
- The condition (i.e. ">3"),
- The formatting associated with the condition (i.e. blue background with white text)
Hence, I don't have the ability to create the css file at design time. I have the conditions working. So then my colorFormatter returns
returnValue = `<div style="${css}">${value}</div>`
this then creates a cell, which looks like this (with a white border around it)
Ideally, I would like to pass in the dynamically generated css style back to the grid cell, so the white border doesn't show between the cell border and the formatting which I would like in the cell.