4 ms·
I came up with the following client-side solutions to problems 2 and 3 after a few minutes of Googling and RTFM: - The `htmx-indicator` class can be used to sh
by arcanemachiner 4y ago
I came up with the following client-side solutions to problems 2 and 3 after a few minutes of Googling and RTFM:
- The `htmx-indicator` class can be used to show a loading spinner while an HTMX request is in progress.
- The `htmx-request` class is added to the element that makes an HTMX request. You can customize this class to disable pointer events, etc.
Example: https://codepen.io/arcanemachine/pen/ExeEzgG https://codepen.io/arcanemachine/pen/ExeEzgG
(Stolen mostly from https://codepen.io/davidadeneye/pen/eYVrpxg https://codepen.io/davidadeneye/pen/eYVrpxg)