Answers for "datatables keep order and page selection page refresh"

0

datatables keep order and page selection page refresh

$('#offersTable').dataTable({
        "bStateSave": true,
        "fnStateSave": function (oSettings, oData) {
            localStorage.setItem('offersDataTables', JSON.stringify(oData));
        },
        "fnStateLoad": function (oSettings) {
            return JSON.parse(localStorage.getItem('offersDataTables'));
        }
    });
Posted by: Guest on March-25-2021

Browse Popular Code Answers by Language