Open lehtone1 opened 2 years ago
I noticed that it is possible to do custom rendering for column with ColumnDT("<a href=''>" + User.id + "</a>"). How can I differ how the data is rendered according to a conditional? I would like to do something like this:
ColumnDT("<a href=''>" + User.id + "</a>")
ColumnDT( if(User.id == 1): "<a href=''>" + User.id + "</a>" else: User.id )
Ok got it. Apparently you need to just do it with columnDefs
I noticed that it is possible to do custom rendering for column with
ColumnDT("<a href=''>" + User.id + "</a>")
. How can I differ how the data is rendered according to a conditional? I would like to do something like this: