How to change datatable settings like 'pagingType' after table initialization using api

How to change datatable settings like 'pagingType' after table initialization using api

kmd1970kmd1970 Posts: 36Questions: 8Answers: 1

I would like to change my tables pagingType to simple if the window is smaller than x width.

(actual I would like to know how to change any settings)

my window example :

     $( window ).resize(function() {
     if ( $( window ).width() <= 1183 ) {
        $.fn.dataTable.defaults.??? = 'simple'; 
    dtable.draw();
      }
This discussion has been closed.