how can I apply the color red to a data while in another function?

how can I apply the color red to a data while in another function?

NkNoctaflyNkNoctafly Posts: 7Questions: 4Answers: 0

Good day, I would like to know how I can apply the color red to a data with "fnCreatedCell" but being in another function

Currently so I get the color red to some data depending on condition and it works perfectly

how could the color red be applied inside a :{targets: [2],render: PrimerPorcentajeCirculante, },

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 13,801Questions: 25Answers: 3,246
    Answer ✓

    This Renderers docs explain how to create custom renderers. These are meant for the data display and are not generally used for applying CSS to the cells. The tr or td elements might not be in the DOM when the renderers are executed.

    Using columns.createdCell or createdRow or rowCallback (if the data can change) execute after the tr or td elements are added to the DOM.

    Kevin

Sign In or Register to comment.