mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 04:50:43 +00:00
[Documentation] Fix outdated attribute links (#3051)
This commit is contained in:
parent
24fb2fe522
commit
ffbcd9291c
@ -139,4 +139,4 @@ attributes.
|
||||
|
||||
## See also
|
||||
|
||||
* [`hx-target`](https://htmx.org/reference/hx-target.md), specifies the target element to be swapped
|
||||
* [`hx-target`](https://htmx.org/attributes/hx-target), specifies the target element to be swapped
|
||||
|
@ -20,7 +20,7 @@ Use the following attributes to configure how SSE connections behave:
|
||||
* `sse-connect="<url>"` - The URL of the SSE server.
|
||||
* `sse-swap="<message-name>"` - The name of the message to swap into the DOM.
|
||||
* `hx-trigger="sse:<message-name>"` - SSE messages can also trigger HTTP callbacks using
|
||||
the [`hx-trigger`](https://htmx.org/reference/hx-trigger.md) attribute.
|
||||
the [`hx-trigger`](https://htmx.org/attributes/hx-trigger) attribute.
|
||||
* `sse-close=<message-name>` - To close the EventStream gracefully when that message is received. This might be helpful
|
||||
if you want to send information to a client that will eventually stop.
|
||||
|
||||
@ -110,7 +110,7 @@ Multiple events in different elements (from the same source).
|
||||
### Trigger Server Callbacks
|
||||
|
||||
When a connection for server sent events has been established, child elements can listen for these events by using the
|
||||
special [`hx-trigger`](https://htmx.org/reference/hx-trigger.md) syntax `sse:<event_name>`. This, when combined with
|
||||
special [`hx-trigger`](https://htmx.org/attributes/hx-trigger) syntax `sse:<event_name>`. This, when combined with
|
||||
an `hx-get` or similar will trigger the element to make a request.
|
||||
|
||||
Here is an example:
|
||||
|
Loading…
x
Reference in New Issue
Block a user