Click To Load

Demo
NameEmailID
Agent Smith 0[email protected]1982e3a7bb241055
Agent Smith 1[email protected]65cd25028f98f158
Agent Smith 2[email protected]7b95a7322f5da314
Agent Smith 3[email protected]7324dc1e7e9474f0
Agent Smith 4[email protected]628911027fcf803f
Agent Smith 5[email protected]5edb980100c87e72
Agent Smith 6[email protected]3564a48862bc4a0d
Agent Smith 7[email protected]6eed105b82285fa
Agent Smith 8[email protected]664f427c6b2c4bea
Agent Smith 9[email protected]28353a066812b268

Explanation #

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

1<button
2    class="info wide"
3    data-indicator-_fetching
4    data-attr-aria-disabled="`${$_fetching}`"
5    data-on-click="!$_fetching && @get('/examples/click_to_load/more')"
6>
7    Load More
8</button>

After clicking this button, the server responds with a set of elements in a text/event-stream with the next page of results. And so on.