why shows " DataTables warning: table id=example1 - Cannot reinitialise DataTable. " error?

why shows " DataTables warning: table id=example1 - Cannot reinitialise DataTable. " error?

munna420munna420 Posts: 1Questions: 1Answers: 0

Error messages shown:

$(function childCategory() {
let table = $('.ytable').DataTable({
processing: true,
serverSide: true,

    ajax: "{{route('childcategory.index')}}",
    columns: [
      {data: 'DT_RowIndex', name: 'DT_RowIndex'},
      {data: 'category_name', name: 'category_name'},
      {data: 'subcategory_name', name: 'subcategory_name'},
      {data: 'childcategory_name', name: 'childcategory_name'},
      {data: 'slug', name: 'slug'},
      {data: 'action', name: 'action', oderable: true, serchable: true}
    ]
  });
});

Answers

Sign In or Register to comment.