Class Option.Builder
java.lang.Object
io.micronaut.views.fields.elements.Option.Builder
- Enclosing class:
- Option
Option Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull Option
build()
Instantiates an Option.@NonNull Option.Builder
disabled
(boolean disabled) @NonNull Option.Builder
@NonNull Option.Builder
selected
(boolean selected) @NonNull Option.Builder
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disabled
- Parameters:
disabled
- If this Boolean attribute is set, this option is not checkable.- Returns:
- the Builder
-
selected
- Parameters:
selected
- If present, this Boolean attribute indicates that the option is initially selected.- Returns:
- the Builder
-
value
- Parameters:
value
- The content of this attribute represents the value to be submitted with the form, should this option be selected.- Returns:
- The Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- The Builder
-
build
Instantiates an Option.- Returns:
- An Option.
-