Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable columns with nullable fields ajax

$('#table-id').DataTable({
  ajax:  {
    url: 'https://someurl/endpoint',
    type: "GET",
    dataSrc: ''
  },
  columns: [
    {
      defaultContent: 'NA',
      data: 'data_field_name'
    }
  ]
});
 
PREVIOUS NEXT
Tagged: #datatable #columns #nullable #fields #ajax
ADD COMMENT
Topic
Name
5+8 =