blue-gold-89534
10/15/2022, 10:41 PMhtml
<table class="table is-striped is-narrow is-hoverable">
<thead><tr> ... </tr></thead>
<tbody id="PartsList">
{% include "parts_list.html" %}
</tbody>
</table>
the table is using infinite scrolling:
html
{% for shelfstation in shelfstation_list %}
{% include "ss_detail.html" %}
{% endfor %}
and ss_detail.html:
html
<tr id="{{ part.serial }}-row"
{% if forloop.last and next_page_qs %}
hx-get="{% url 'shelfstations' %}?{{next_page_qs}}"
hx-trigger="revealed"
hx-swap="afterend"
{% endif %}>
<td class="">...</td>
<td class="">...</td>
</tr>
I am having troubles adding a hx-get="{% url 'parts' %}?page={{ page_obj.number }}" including a hx-trigger="every 10s" somewhere so that the infinite scrolling is not "destroyed" on trigger.