I need to add titles in my cells, because they keep acronyms and I need to make it more descriptive. At the same time, there are external factors that indicate whether a cell is valid or not, but when you have a row with an error and also with a title defined by the renderer, only one works, here’s an example:
http://jsfiddle.net/8hbcz2m6/40/
If you uncomment line 46, the cell colors work as expected, but the title disappears, since when line 46 is commented out, the entire line is painted as expected, except the column that has the renderer
Hi @guilherme.farias
What about a comment instead of a title
like here https://jsfiddle.net/fmbk06qL/? Comments are a part of the official API (title
is the cell is not).
thanks, but I can’t use this plugin. I really need to use the title :(. is there any way to use it this way?
I understand. So maybe we can specify the requirements.
- It has to be a
title
in a TD cell
- The information for the row validity comes from an
error
key in the object row
Now, where this title
should appear and what should it show? Do you plan to show it for all the cells in the row that has error: true
value?
Ok. So… I would use the setCellMeta()
method to attach a custom property called title
that is the data[row_index]desc
value for all the cells in the columns of index 2
. And then use the custom renderer to pass that custom property to the HTML’s title of the TD
element. Here’s an updated demo http://jsfiddle.net/089ezruk/5/
ps. batch()
is used for the performance reasons to cut excess calls to the renderer.
Thank you very much, I will try to see if it solves my problem. I will let you know
@guilherme.farias I’m more than happy to hear that.
I think that we can close the thread.