mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 07:45:21 +00:00
Update hx-indicator.md
This commit is contained in:
parent
7a097dc49b
commit
a9ade676b9
@ -54,12 +54,12 @@ CSS. Here is an example that uses `display` rather than opacity:
|
||||
}
|
||||
```
|
||||
|
||||
Note that the target of the `ic-indicator` selector need not be the exact element that you
|
||||
Note that the target of the `hx-indicator` selector need not be the exact element that you
|
||||
want to show: it can be any element in the parent hierarchy of the indicator.
|
||||
|
||||
Finally, note that the `htmx-request` class by default is added to the element causing
|
||||
the request, so you can place an indicator inside of that element and not need to explictly
|
||||
call it out with the `ic-indicator` attribute:
|
||||
call it out with the `hx-indicator` attribute:
|
||||
|
||||
```html
|
||||
<button hx-post="/example">
|
||||
|
Loading…
x
Reference in New Issue
Block a user