|
|
|
|
|
by machinelabo
2035 days ago
|
|
Can you please explain how to build a "larger" app with HTMX? The way I understand htmx, it will replace the tag itself with an ajax response from the server. This is great for submit feedback and flash messages. What if you want to click a htmx-button and replace something else outside of the tag with htmx? |
|
https://htmx.org/attributes/hx-target/
You can also use Out of Band swaps to replace arbitrary DOM content:
https://htmx.org/docs/#oob_swaps