How to pass dynamic value in columnDefs?
How to pass dynamic value in columnDefs?
shaileshnk101
Posts: 1Questions: 1Answers: 0
var example = 0,1
"columnDefs": [ {
"searchable": false,
"orderable": false,
"targets": [0],
}
this is my block of code and I am trying to pass "var example" in targets
that would be look like this,
"targets": [example ]
plz help me to achive this.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
These are 2 ways I do this stuff one way is to use columns and the other columnDefs.
Good luck