Click to Load

Name Email ID
Agent Smith void10@null.org a1c87f73-08f9-4eaa-81a8-e907e5a19cc0
Agent Smith void11@null.org cc93824f-a82c-4b29-97e9-b4fa7f906258
Agent Smith void12@null.org 7395f4d4-555a-4d86-b96a-5c158dd435ec
Agent Smith void13@null.org 9833aab5-df47-461d-acbd-65c4dccfdee0
Agent Smith void14@null.org d2ee00e2-8464-4479-b7c0-1286f28bd430
Agent Smith void15@null.org 91c8a872-c64f-4930-b43b-4effa8d3fc24
Agent Smith void16@null.org a4025c5f-86ba-4cf9-af1a-91a5e02c70b9
Agent Smith void17@null.org 82cb01c9-2053-4747-8d39-77567464a023
Agent Smith void18@null.org 8bc5c1c4-e638-414a-8033-6eb2c909bf08
Agent Smith void19@null.org 4cea906b-a1b5-4855-9a14-2ef9759bb8e9

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.