DateTimeField API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
DateTimeField8 props1 callbacks0 methods
Props8
| Name | Type | Description |
|---|---|---|
kindOptional |
| Date/time value kind handled by the temporal control. |
valueRequired | string | Value to display or edit. The declared type identifies the supported representation; change callbacks describe how edited values are emitted. |
requiredOptional | boolean | undefined | Requires a non-empty value or selection before the edit can be accepted. |
disabledOptional | boolean | undefined | Disables user interaction with the control. |
readOnlyOptional | boolean | undefined | Displays the current value while preventing user edits. |
pickerOptional |
| Configuration passed to the popup temporal picker. |
formatValueOptional |
| Existing product text adapters can keep their custom display/parser. |
parseValueOptional |
| Converts typed text into a valid field value; return undefined when parsing fails. |
Events and callbacks1
| Name | Type | Description |
|---|---|---|
onValueChangeOptional |
| Receives the updated input value. Store it in application state and pass it back through value. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.