Hacker News new | ask | show | jobs
by dll 960 days ago
You'd use the hx-delete attribute and have a server side handler that responded to that by deleting the item & returning a new list of items. You can see an example of that approach (with Rust + Actix Web) here that I'm currently working on (the partial to list todo items is in templates, and you can follow the delete link to the relevant handler in routes/todo/delete.rs):

https://github.com/welshdave/actix-htmx/tree/main/examples/t...