Class InputDateFormElement.Builder
java.lang.Object
io.micronaut.views.fields.elements.InputDateFormElement.Builder
- Enclosing class:
- InputDateFormElement
Input Date Builder.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull InputDateFormElement
build()
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
required
(boolean required) @NonNull InputDateFormElement.Builder
@NonNull InputDateFormElement.Builder
-
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
-
max
- Parameters:
max
- The latest date to accept- Returns:
- The Builder
-
min
- Parameters:
min
- The earliest date to accept.- 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
-
step
- Parameters:
step
- Granularity that the value must adhere to- Returns:
- The Builder
-
id
- Parameters:
id
- It defines an identifier (ID) which must be unique in the whole document- Returns:
- The Builder
-
value
- Parameters:
value
- The value attribute of the input element- Returns:
- the Builder
-
label
- Parameters:
label
- represents a caption for an item in a user interface- Returns:
- The Builder
-
errors
@NonNull public @NonNull InputDateFormElement.Builder errors(@NonNull @NonNull List<Message> errors) - Parameters:
errors
- Form element validation Errors.- Returns:
- The Builder
-
build
- Returns:
- Creates a
InputDateFormElement
.
-