setPage()

function setPage(table, num) { var c = table.config; c.page = num; c.totalPages = Math.ceil(c.totalRows / c.size); moveToPage(table); }

function setPage(table, num) {
    var c = table.config;
    c.page = num;
    c.totalPages = Math.ceil(c.totalRows / c.size);
    moveToPage(table);
               
}

Share this Tutorial