Annotation Interface HxRequest
Annotation for mapping htmx requests onto specific handler method.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the mapping applies also for requests that have been boosted.booleanWhether the mapping applies also for requests that have been made for history restoration.Restricts the mapping to theidof a specific target element.Restricts the mapping to theidof a specific triggered element.Restricts the mapping to thenameof a specific triggered element.Restricts the mapping to theid, if any, or to thenameof a specific triggered element.
-
Element Details
-
boosted
boolean boostedWhether the mapping applies also for requests that have been boosted. Defaults totrue.- Since:
- 3.6.0
- See Also:
- Default:
- true
-
historyRestoreRequest
boolean historyRestoreRequestWhether the mapping applies also for requests that have been made for history restoration.- Since:
- 4.1.0
- See Also:
- Default:
- false
-
target
String targetRestricts the mapping to theidof a specific target element.- See Also:
- Default:
- ""
-
triggerId
String triggerIdRestricts the mapping to theidof a specific triggered element.- See Also:
- Default:
- ""
-
triggerName
String triggerNameRestricts the mapping to thenameof a specific triggered element.- See Also:
- Default:
- ""
-
value
String valueRestricts the mapping to theid, if any, or to thenameof a specific triggered element.If you want to be explicit use
triggerId()ortriggerName().- See Also:
- Default:
- ""
-