I am facing an issue in javascript datatables. I want to add pagination in table
My Code
// i want to pass get api in datatable .. how should i do
$('#example').dataTable( {
"pagingType": "simple",
"searching": false,
"bFilter": false,
"ajax": 'https://gencomp.com/api/v2/emails', //not working
"order": [[ 0, "desc" ]]
} );
API:
`https://gencomp.com/api/v2/emails?per_page=100&page=${page}`;
i want to display my page1
and page2
and so on.. previous and next
can't move on page2
how can i do? anyone please help me?
Screenshot