This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 1 year, 6 months ago.

Changing defaults of advanced table


  • emraheee
    Participant

    Posts: 10
    Member Reply #7403

    I am using fixed header table of metronic. I dont know how to change default number of records per page.

    I want to see all records by default. Also  i want to change labels “Search”,”Showing 1 to 20 of 43 entries” as i want.

    how can i do that.

    Thanks.

    • This topic was modified 1 year, 6 months ago by  emraheee.
    • This topic was modified 1 year, 6 months ago by  emraheee.
    Sean
    Sean
    Keymaster

    Posts: 4226
    Support Staff Reply #7420

    Hi,

    You can change those texts within the below “language” parameter for your datatable initialization in “assets/pages/scripts/table-datatables-fixedheader.js”

     “language”: {

    “aria”: {

    “sortAscending”: “: activate to sort column ascending”,

    “sortDescending”: “: activate to sort column descending”

    },

    “emptyTable”: “No data available in table”,

    “info”: “Showing _START_ to _END_ of _TOTAL_ entries”,

    “infoEmpty”: “No entries found”,

    “infoFiltered”: “(filtered1 from _MAX_ total entries)”,

    “lengthMenu”: “_MENU_ entries”,

    “search”: “Search:”,

    “zeroRecords”: “No matching records found”

    },

    Also make sure that you use “gulp minify” task to compile the modified js files into minified version or change the include file name in your html code from table-datatables-fixedheader.min.js to table-datatables-fixedheader.js in order to see the changes. For more info about Metronic gulp tasks please check the documentation under “_documentation/index.html”.

    Thanks.

You must be logged in to reply to this topic.