datastar/site/static/md/examples/bulk_update.md

601 B
Raw Blame History

Bulk Update

Original HTMX Version

Demo

Explanation

This demo shows how to implement a common pattern where rows are selected and then bulk updated. This is accomplished by putting a form around a table, with checkboxes in the table, and then including the checked values in PUTs to two different endpoints: activate and deactivate.

The server will either activate or deactivate the checked users and then rerender the tbody tag with updated rows.