How to apply CSS for Column using REST

How to apply CSS for Column using REST

beginner_2018beginner_2018 Posts: 46Questions: 19Answers: 0

Dear All,

I am trying to apply for one of the column in REST , But I find no luck with it.
Can any one please do let me know what's wrong in my below code

{
style:'visibility:hidden',
"mData": null,
render: function (data, type, row, meta ) {
if(data=="[object Object]")
{
return "0";
}
}
}

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin
    Answer ✓

    There is no style option in the reference list. You would need to use columns.className to assign a class and then use that to style your column.

    Allan

This discussion has been closed.