Currently, the slickgrid cells have 2 classes, "slick-cell" and "cell-title".

I'm not sure what the "cell-title" class is meant to be, but there should be a better way to apply styles to the cells.

CommentFileSizeAuthor
#1 slickgrid-cell-selector-1870712-1.patch.txt833 byteslee20

Comments

lee20’s picture

Status: Active » Needs review
StatusFileSize
new833 bytes

Attached is a patch that adds a CSS selector to each cell based on the $field_id. This also removes the "cell-title" selector.

razkovnik’s picture

Great job, Chris! And do you have any idea how would it be possible to add a CSS selector not only column based but also row based?
What I mean is the possibility to change the background color of every single cell based on specific event. For example: when the a cell is empty there will be no color, and when you put some value in - it's background color will be changed.
Thank you in advance!