Data Tables - disable the show group of entries and search functionality

2 replies · opened Jan 20, 2017

JjuanleJan 20, 2017

Hello, first thanks for your great template and support.

In relation to http://themes.semicolonweb.com/html/canvas/component-datatable.php I think it is very useful.

However, is possible to disable the pagination and the search option? I would like only to display all rows at once. Besides I would like also disable the search option.

Thanks
Juan

SSemicolon WebSTAFFJan 30, 2017

Hello,

This is Definitely Possible! Please find the following code in the component-datatable.html Template:

$('#datatable1').dataTable();

and replace it with:

$('#datatable1').dataTable({
	"paging":	false,
	"info":		false,
	"searching":	false
});

You can find more Setup Options here: https://datatables.net/manual/options .

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

JjuanleJan 30, 2017

Excellent, all working now as expected.

Best regards
Juan

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard