https://htmx.org logo
Short question: I have a table with infinite scrol...
# htmx-general
b
Short question: I have a table with infinite scrolling:
Copy code
html
<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:
Copy code
html
{% for shelfstation in shelfstation_list %}
    {% include "ss_detail.html" %}
{% endfor %}
and ss_detail.html:
Copy code
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.