default content function datatables code example
Example: datatable columns with nullable fields ajax
$('#table-id').DataTable({
ajax: {
url: 'https://someurl/endpoint',
type: "GET",
dataSrc: ''
},
columns: [
{
defaultContent: 'NA',
data: 'data_field_name'
}
]
});