Hi, I have a column that I want to be empty if there is no value assigned to it. I have achieved this using this:
Field::inst( 'ct' )->setFormatter( Format::ifEmpty( null ) ),
I then wanted to append the text ct to each entry in the column. I achieved this using this:
{"render": function ( data, type, row ) {return data +' '+ "ct"+'';},"targets": 10},
However cells with no values assigned to them now display null ct
Any ideas how I could overcome this? I can't provide a link but here's an image.
I know it's doing this because the cell is no longer empty, but obviously that's not desired behaviour!