What is the best practice if you need to apply multiple renders to a single column?
What is the best practice if you need to apply multiple renders to a single column?
kmd1970
Posts: 36Questions: 8Answers: 1
Example:
I would like to apply a due date indicator render AND maintain a search word highlighting render on the same column.
How do would I do that? Combining all renders into one function() call seems sloppy.
js
{ "data" : "date_column", "render": due_date or highlight (not both) },
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Using
columns.render
is the way to modify the data for each column, so that is how you would do it here as well.Allan
Yes I am using
columns.render
in my example above. :)What I am asking is how (or is it possible) to apply multiple render functions per single column definition.
I the example above I want to run due_date and highlight functions on the same date_column.
Sorry I wasn't clear. There is no option to apply multiple renderers. You would need to combine them into a single function.
Allan
Ok. Thanks. :)