Sveriges mest populära poddar

hx-pod

Htmx request headers: Hx-Trigger and Hx-Trigger-Name

6 min • 26 april 2024

You can use these headers to conditionally branch your response based on *which element* the request was triggered from

example of format:
Request Headers:
Hx-Trigger: search_input
Hx-Trigger-Name: search

Förekommer på
00:00 -00:00