Load more

A server action that appends keyed rows and disappears when the list is exhausted.

Load three entries at a time while retaining every existing row identity.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add load-more

Usage

html
{% import "suprnova-ui/load-more/load-more.html" as load_more %}
{% call more::load_more("load_more", exhausted=exhausted) %}{% endcall %}

Examples

Partial last page

Load two updates at a time; the final page contains one update.

Open in new tab

Keyboard and accessibility

suprnova.load-more - append the next page to a keyed list (NAV-006). The list's items carry live:key, so the morph keeps every existing node and inserts the new ones; the control is a button on a registered action, disabled and busy while the action runs, and absent once the server reports the last page (exhausted=true).

API reference

load_more_list

ParameterDefaultDescription
idRequiredUnique list ID.
label"Items"Accessible name of the keyed list.

load_more

ParameterDefaultDescription
actionRequiredRegistered Live action that appends the next page.
text"Load more"Visible load-more button text.
exhaustedfalseServer end-of-list state; true removes the control.