onBeforePageChange

fires before the page is changed

void onBeforePageChange(number old_page,number new_page){ ... };

Parameters

old_pagenumberthe index of the changed page
new_pagenumberthe index of the new page

Example

pager:{
    container:"paging_here",
    size:10,
    group:5,
    on:{
        onBeforePageChange:function(new_page, old_page){
            console.log(new_page, old_page)
    }}
}

See also
Back to top