Hi,
how do I implement pagination with REST API if the server returns this:
{
"page": 1,
"per_page": 6,
"total": 12,
"total_pages": 2,
"data": [{...},{...},...]
}
- I need to be able to set pageSize in the table component
- I need to be able to read the current page which is selected in the paginator control
For now I ended up with this workaround
...?page={{usersTable.paginationOffset / usersTable.displayedData.length + 1}}
where I had to adjust table height so that paginationOffset is increased by 6
Is there a more elegant way to solve this issue?