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