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?

kmd1970kmd1970 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

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    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

  • kmd1970kmd1970 Posts: 36Questions: 8Answers: 1

    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.

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin
    Answer ✓

    Sorry I wasn't clear. There is no option to apply multiple renderers. You would need to combine them into a single function.

    Allan

  • kmd1970kmd1970 Posts: 36Questions: 8Answers: 1
    edited July 2015

    Ok. Thanks. :)

This discussion has been closed.