Hi all,
I've got a Datatable that uses a page state content (from an API call) to show the content. The API call fetches 5 elements at a time. The response has the following content:
{
"count": 9,
"next": "http://URL/foo/?limit=5&offset=5",
"previous": null,
"results": [
{...},
{...},
{...},
{...},
{...},
]
}
I can't figure out why the pagination buttons don't show the correct values (always 1-5 of 5
) when in this case it should be 1-2 of 2
. Also, and this could be a side effect of the first issue, why is the next button disabled?