Create checkboxes
Create checkboxes
Schmakus
Posts: 15Questions: 10Answers: 0
Hi,
I have a column with values "1" and "0". Now, I want to create checkboxes dynamically (checked/unchecked).
Could I use the column.render() for this?
Who can give me an example?
Thank you!
This discussion has been closed.
Replies
"mRender": function (data, type, full) {
return '<input type="checkbox" ' + ((data == 1) ? 'checked' : '') + ' />'
}