How do you render a boolean true/false value coming from JSON to a green check or a red x on a jquery datatable?
For example, something like:
✓
✓
and
✗
✗
How do you render a boolean true/false value coming from JSON to a green check or a red x on a jquery datatable?
For example, something like:
✓
✓
and
✗
✗
Using bootstrap glyphicons you can do this:
Then add some css like this:
For my purposes I am ok with adding this custom CSS to a pre-defined bootstrap icon. If you don't want that, define and use your own class.