Annotation Interface TurboView


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface TurboView
Annotation to ease the return of TurboStream in routes.
Since:
3.3.0
Author:
Sergio del Amo
  • Element Details

    • value

      String value
      Returns:
      The View Name for the route.
      Default:
      ""
    • action

      Returns:
      The Turbo Stream action. Defaults to `update`.
      Default:
      UPDATE
    • targetDomId

      String targetDomId
      Returns:
      Target DOM ID.
      Default:
      ""
    • targetCssQuerySelector

      String targetCssQuerySelector
      Returns:
      Target CSS Query Selector.
      Default:
      ""
    • requestId

      String requestId
      Returns:
      request-id attribute, only relevant when action=refresh
      Default:
      ""
    • childrenOnly

      boolean childrenOnly
      Returns:
      morph only the children of the element designated by the target dom id
      Default:
      false