💭 </> 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

The [38;2;189;147;249mhtmx-request[0m class is added to [38;2;189;147;249mhtmx-target[0m elements. You can target this css selector to create loading state throbbers.

By default the target element will the [38;2;189;147;249mself[0m, but you can use the typical [4m[38;2;248;248;242mhtmx[0m <[38;2;248;248;242m/htmx/[0m> css selector to select which element will recieve the [38;2;189;147;249mhtmx-request[0m class while the request is running.

The only way to override the name of the class is through config.

[38;2;68;71;90mNOTE[0m
[38;2;68;71;90m│ [0mThis post is a [4m[38;2;248;248;242mthought[0m <[38;2;248;248;242m/thoughts/[0m>. It’s a short note that I make about someone else’s content online #thoughts
