I have JSON data that is already paginated from the server. I have successfully shown the items in my vuetify data table. Now I want to create pagination that loads the next or previous set of data from the server. Unable to add custom function in data table pagination that loads the next set of data from the server.
{
"current_page": 1,
"data": [
{
"id": 1,
"contact_person": "person one",
"email": "[email protected]",
"phone": 1234567890,
"gst": "0987654321",
"user_id": 3,
"created_at": "2019-08-17 18:30:00",
"updated_at": "2019-08-17 18:55:32"
},
{
"id": 2,
"contact_person": "person two",
"email": "[email protected]",
"phone": 1234567891,
"gst": "0987654322",
"user_id": 3,
"created_at": "2019-08-17 18:30:00",
"updated_at": "2019-08-17 18:55:32"
}
],
"first_page_url": "http://localhost:8000/customer?page=1",
"from": 1,
"last_page": 3,
"last_page_url": "http://localhost:8000/customer?page=3",
"next_page_url": "http://localhost:8000/customer?page=2",
"path": "http://localhost:8000/customer",
"per_page": 2,
"prev_page_url": null,
"to": 2,
"total": 6
}
I want "next_page_url" and "prev_page_url" to be executed on pagination icon click. Thank you in adv :)