Skip to main content

Module date_time

Module date_time 

Source
Expand description

Optional Material date and time editors. Confirm callbacks request committed values from the application. Picker states retain the draft and focus.

Structs§

Date
A representation of a civil date in the Gregorian calendar.
DatePicker
A single or range date picker with a trigger, a standalone panel, or a modal dialog.
DatePickerColors
Local date picker and editor colors. Unset values use the active Material theme.
DatePickerLocale
Formatting and parsing belong to the application locale. Default editing uses an ISO pattern and the calendar uses English headings.
DatePickerState
Owns the Base calendar, input editors, and draft focus. The application owns the value passed to the picker. Every open copies that value into the draft.
ScrollField
A vertically scrolling selection wheel with a single accessible focus stop. The field fills its parent’s width and displays three rows at a time.
ScrollFieldColors
Optional overrides for the window theme’s scroll field colors.
ScrollFieldState
Caller-owned position and focus for one Material scroll field.
Time
A representation of civil “wall clock” time.
TimePicker
A button that edits a committed time in a Material dialog.
TimePickerLocale
Application locale hooks for numbers, period names, separator, and labels.
TimePickerModeAction
A request to switch between the current input and picker modes.
TimePickerPanel
An independently mountable Material time-editing panel.
TimePickerSelectionColors
Container and content colors for selected and unselected controls.
TimePickerState
Owns one editable time, its input fields, selection wheels, and dialog session.
TimePickerStyle
Instance appearance for the dial, input, and scroll panels.
TimeScroll
An uncontained vibrant panel with separate, wrapping hour and minute wheels.

Enums§

DatePickerDisplayMode
The visible editor in a date picker.
DatePickerDraft
A draft can retain the first endpoint before the second is chosen.
DatePickerVariant
Presentation style of a DatePicker.
DateSelection
A committed picker value. The empty variants preserve the selection kind.
TimeFormat
Hour display convention for a time picker.
TimePickerLayout
Orientation of the dial relative to the time header in a time picker.
TimePickerSegment
The time component currently targeted for editing.
TimePickerVariant
Interactive editor mode for a time picker.
Weekday
A representation for the day of the week.

Type Aliases§

TimePickerDialog
A Material dialog for an application-owned time picker trigger.
VibrantTimePickerDialog
A Material time dialog with vibrant colors and an optional visible title.