Package io.micronaut.views.turbo
Annotation Interface TurboView
Annotation to ease the return of
TurboStream
in routes.- Since:
- 3.3.0
- Author:
- Sergio del Amo
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
-
Element Details
-
value
String value- Returns:
- The View Name for the route.
- Default:
- ""
-
action
TurboStreamAction 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
-