DatePickerΒΆ
-
/libs/granite/ui/components/foundation/form/datepicker
DatePicker is an input component where the user can enter date.
It extends
Field
component.It has the following content structure:
-
granite:FormDatePicker
- granite:FormField
- idstring
The id attribute.
- relstring
The class attribute. This is used to indicate the semantic relationship of the component similar to
rel
attribute.
- classstring
The class attribute.
- titlestring
- i18n
The title attribute.
- namestring
The name that identifies the field when submitting the form. The SlingPostServlet @TypeHint hidden input with value
Date
is also generated based on the name.
- valuestringel
The value of the field.
- emptyTextstring
- i18n
A hint to the user of what can be entered in the field.
- disabledboolean
Indicates if the field is in disabled state.
- requiredboolean
Indicates if the field is mandatory to be filled.
- validationstring
- multiple
The name of the validator to be applied. E.g.
foundation.jcr.name
. See validation in Granite UI.
-
typestring
- date
- date
- datetime
- time
The type of the picker.
- displayedFormatstring
- i18n
The date format to be displayed.
-
storedFormat
- YYYY-MM-DD[T]HH:mm:ss.SSSZ
The date format for form submission.
- minDatestring
The minimum boundary of the date.
- maxDatestring
The maximum boundary of the date.
- displayTimezoneMessageboolean
Indicates if a informative message should be displayed regarding timezone prevalence
-
granite:FormDatePicker