Class SelectFormElement.Builder
java.lang.Object
io.micronaut.views.fields.elements.SelectFormElement.Builder
- Enclosing class:
- SelectFormElement
Select Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull SelectFormElement
build()
Creates a Select form element.@NonNull SelectFormElement.Builder
@NonNull SelectFormElement.Builder
@NonNull SelectFormElement.Builder
@NonNull SelectFormElement.Builder
@NonNull SelectFormElement.Builder
@NonNull SelectFormElement.Builder
required
(boolean required)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
required
- Parameters:
required
- If true indicates that the user must specify a value for the input before the owning form can be submitted.- Returns:
- The Builder
-
name
- Parameters:
name
- Name of the form control. Submitted with the form as part of a name/value pair- Returns:
- The Builder
-
id
- Parameters:
id
- It defines an identifier (ID) which must be unique in the whole document- Returns:
- The Builder
-
options
- Parameters:
options
- select options- Returns:
- the Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- The Builder
-
errors
- Parameters:
errors
- Form element validation Errors.- Returns:
- The Builder
-
build
Creates a Select form element.- Returns:
- A Select
-