Change the number of showed entries in Datatable Plugin

2 replies · opened Jul 9, 2017

BbahynskyiJul 9, 2017

Hello Support Team,

Thanks for a great template.

I use Datatable Plugin and want to change the number of showed entries to 5 on the first page. How can I do that?

Regards,
Alex

SSemicolon WebSTAFFJul 15, 2017

Hello,

This is Definitely Possible. You can simply add the "pageLength": 5 Option to the Data Table JS Initialization Code at the bottom of the Page. Example:

$('#datatable1').dataTable({ "pageLength": 5 });

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.

BbahynskyiJul 17, 2017

Hello. Works! Thanks a lot for your help.

Kind regards,
Alex

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