Package io.micronaut.views.turbo
Class TurboFrame.Builder
- Enclosing class:
- TurboFrame
Turbo Frame Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull TurboFrame.Builder
autoscroll
(@Nullable Boolean autoscroll) @NonNull TurboFrame
build()
@NonNull TurboFrame.Builder
@NonNull TurboFrame.Builder
@NonNull TurboFrame.Builder
@NonNull TurboFrame.Builder
static @NonNull Optional<TurboFrame.Builder>
of
(@NonNull io.micronaut.http.HttpRequest<?> request, @NonNull io.micronaut.http.HttpResponse<?> response) Creates a Turbo Frame builder if annotationTurboFrameView
is found in the route and the request is a turbo request.@NonNull TurboFrame.Builder
@NonNull TurboFrame.Builder
@NonNull TurboFrame.Builder
visitAction
(@NonNull VisitAction visitAction) Methods inherited from class io.micronaut.views.TemplatedBuilder
getTemplate, getTemplateModel, getTemplateView, template, template, template, templateModel, templateView
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
src
- Parameters:
src
- src attribute- Returns:
- Turbo Frame Builder
-
id
- Parameters:
id
- id attribute- Returns:
- Turbo Frame Builder
-
target
- Parameters:
target
- target attribute- Returns:
- Turbo Frame Builder
-
loading
- Parameters:
loading
- eager and lazy- Returns:
- Turbo Frame Builder
-
busy
- Parameters:
busy
- Busy attribute- Returns:
- Turbo Frame Builder
-
disabled
- Parameters:
disabled
- Disabled Attribute- Returns:
- Turbo Frame Builder
-
autoscroll
- Parameters:
autoscroll
- Autoscroll Attribute- Returns:
- Turbo Frame Builder
-
visitAction
- Parameters:
visitAction
- Visit Action- Returns:
- The builder.
-
build
- Specified by:
build
in classTemplatedBuilder<TurboFrame>
- Returns:
- Turbo Frame
-
of
@NonNull public static @NonNull Optional<TurboFrame.Builder> of(@NonNull @NonNull io.micronaut.http.HttpRequest<?> request, @NonNull @NonNull io.micronaut.http.HttpResponse<?> response) Creates a Turbo Frame builder if annotationTurboFrameView
is found in the route and the request is a turbo request.- Parameters:
request
- HTTP Requestresponse
- HTTP Response- Returns:
- Creates a Turbo Frame builder if annotation
TurboFrameView
is found in the route and the request is a turbo request.
-