vendredi 22 juillet 2016

Style a checkbox in datatable columns


I have a datatable from ajax source. I want to display a checkbox in one column based on its value.

If the value is active, checkbox should be checked, otherwise it remains unchecked.

I am using Switchery JS to stylize the checkbox. It works fine in normal HTML body, but not inside a datatable column.

Here is the fiddle:

https://jsfiddle.net/sohal/gfuuazxL/4/

Aucun commentaire:

Enregistrer un commentaire