Click to Load

Name Email ID
Agent Smith void10@null.org deba21b0-8882-4e7a-9c38-eeb5cfd1b0c6
Agent Smith void11@null.org 02f9cc23-ecba-40da-9f4f-37beaacc9d43
Agent Smith void12@null.org a0cbf4d6-1a8a-4e21-92d0-b6537571e561
Agent Smith void13@null.org 98bac394-b866-4a4d-8409-5da79b6095b6
Agent Smith void14@null.org ef15f544-2b31-4519-8bb8-a9f88a8e6e30
Agent Smith void15@null.org 58e78374-32e1-4353-86b9-15d5a05feecf
Agent Smith void16@null.org 72775b3d-2890-491b-b66a-a657c6f8534d
Agent Smith void17@null.org cf75761d-a538-4bd6-9fb2-af5b9d7fad51
Agent Smith void18@null.org 5c0530da-6980-435a-90bf-9089da0590de
Agent Smith void19@null.org d869715f-c387-4f30-9bd1-718eb434268b

This example shows how to implement click-to-load the next page in a table of data. The crux of the demo is the final row:

<tr id="replaceMe">
  <td colspan="3">
    <button class='btn primary' hx-get="rows.jsp?page=2"
                        hx-target="#replaceMe"
                        hx-swap="outerHTML">
         Load More Agents... <img class="htmx-indicator" src="images/bars.svg">
    </button>
  </td>
</tr>

This row contains a button that will replace the entire row with the next page of results (which will contain a button to load the next page of results). And so on.