A thin markup helper: emits an htmltools element carrying its API
endpoint as a data-endpoint attribute (plus any extra attributes you pass).
Your app's feature JavaScript reads element.dataset.endpoint, fetches it
with the window.aurora runtime (aurora.json(...)), and renders however it
likes.
Arguments
- endpoint
API path the feature JS will fetch, e.g.
"api/sales/data". Resolved against the app base path byaurora.url()in the runtime.- ...
Passed to the underlying htmltools tag. Named arguments become attributes (e.g.
class,style, or extradata-*attributes such as"data-page-size" = "25"); unnamed arguments become child tags.- id
Element id, so your JS can find it (
document.getElementById). Optional but recommended.- tag
HTML tag name to emit. Defaults to
"div".