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?
NkNoctafly
Posts: 10Questions: 5Answers: 0
in DataTables
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
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
ortd
elements might not be in the DOM when the renderers are executed.Using
columns.createdCell
orcreatedRow
orrowCallback
(if the data can change) execute after thetr
ortd
elements are added to the DOM.Kevin