Reply To: Custom themed DataTables?

Home Forums MapPress Support Custom themed DataTables? Reply To: Custom themed DataTables?

#13557
Chris
Keymaster

Hi,

I’m sorry, but there’s really no way to pass options to the datatable object, the existing options are hard-coded in the plugin.

It may be a moot point because I plan to remove the datatables functionality in an up-coming release (I’ll provide paging and sorting within the plugin itself).

If you want to pursue the theme, one solution might be to output the poi list as a plain table. Then, add the datatable call separately in the template – i.e. include the datatables library and use:

$(document).ready(function(){
    $('mapp0_poi_list').dataTable( { your options } );
});