Annotation Interface HxRequest


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface HxRequest
Annotation for mapping htmx requests onto specific handler method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Restricts the mapping to the id of a specific target element.
    Restricts the mapping to the id of a specific triggered element.
    Restricts the mapping to the name of a specific triggered element.
    Restricts the mapping to the id, if any, or to the name of a specific triggered element.
  • Element Details

    • target

      String target
      Restricts the mapping to the id of a specific target element.
      See Also:
      Default:
      ""
    • triggerId

      String triggerId
      Restricts the mapping to the id of a specific triggered element.
      See Also:
      Default:
      ""
    • triggerName

      String triggerName
      Restricts the mapping to the name of a specific triggered element.
      See Also:
      Default:
      ""
    • value

      String value
      Restricts the mapping to the id, if any, or to the name of a specific triggered element.

      If you want to be explicit use triggerId() or triggerName().

      See Also:
      Default:
      ""