https://htmx.org logo
`This last element contains a listener which, when...
# 🔥-django-htmx
v
This last element contains a listener which, when scrolled into view, will trigger a request. The result is then appended after it. The last element of the results will itself contain the listener to load the next page of results, and so on.
I don't know. You will want an html fragment page which renders some sort of object_list from your context dictionary. And on the last element, it will need to add to the final tag
Copy code
hx-get="{% your url tag pointing to the paginated view %}/?page={{ #something for next page number }}"
    hx-trigger="revealed"
    hx-swap="afterend"
You'll want this fragment view to be included (with the % include % tag) in your full page view. The full page view should open / close the table tag and inside it should include the first page of a view following what I described above.