💭 htmx ~ hx-indicator Attribute =================================== !https://htmx.org/attributes/hx-indicator/ Date: September 2, 2023 htmx ~ hx-indicator Attribute The hx-indicator attribute in htmx allows you to specify the element that will have the `htmx-request` class added to it for the duration of the request. This can be used to show spinners or progre... htmx.org [1] The `htmx-request` class is added to `htmx-target` elements. You can target this css selector to create loading state throbbers. By default the target element will the `self`, but you can use the typical htmx css selector to select which element will recieve the `htmx-request` class while the request is running. The only way to override the name of the class is through config. !!! note This post is a thought [2]. It's a short note that I make about someone else's content online #thoughts [3] References: [1]: https://htmx.org/attributes/hx-indicator/ [2]: /thoughts/ [3]: /tags/thoughts/