i have jQuery Data table in some columns contains font awesome icons

i have jQuery Data table in some columns contains font awesome icons

mhassancs77mhassancs77 Posts: 2Questions: 2Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • rf1234rf1234 Posts: 2,990Questions: 87Answers: 421

    that's no problem. if you don't know how to do it just search the forum. I think I posted a couple of things on that matter.

    Here is an example:

    {   data: "contract_copy.done",
        render: function (data, type, row) {
            if (data <= '0') {
                return '<i class="fa fa-square-o fa-lg text-center" style="display:block" aria-hidden="true"></i>';
            }
            return '<i class="fa fa-check-square-o fa-lg text-center" style="display:block" aria-hidden="true"></i>';
        }
    }
    
Sign In or Register to comment.