DateTimeField
DateTimeField is a combined date + time picker backed by a focusable text input plus a framework-built DateTimePickerDropdown that fades in via the shared AnimatedDropdown lifecycle.
It implements Bindable<Date | null>.
Usage
typescript
import { Event } from '@jimka/typescript-ui/core';
import { DateTimeField } from '@jimka/typescript-ui/component/input';
const startsAt = DateTimeField();
Event.addListener(startsAt, 'input', () => {
const value = startsAt.getValue();
console.log('starts:', value?.toISOString());
});
panel.addComponent(startsAt);Common methods
| Method | Purpose |
|---|---|
getValue() | Returns the entered date+time, or null when empty. |
setValue(date | null) | Programmatically set the value. |
addBindingListener(fn) | Subscribe to user-driven changes. |
setDropdownAnimated(boolean) | Toggle the fade animation on the dropdown. |
Notes
- The dropdown stacks a month-view calendar over an hour/minute selector. Updates fire incrementally — every day/hour/minute click fires
inputwith the latest aggregate value. - The dropdown is intentionally minimal — extend
DateTimePickerDropdownfor navigation, locale-aware grouping, or seconds support.
See also
- API: DateTimeField
DateField,TimeFieldAnimatedDropdown— shared fade lifecycle- Data binding