Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

Ui.DatePicker

A date picker component.

States

month
:
Maybe(Time)
=
Maybe::Nothing

A variable for tracking the current month.

Properties

disabled
:
Bool
=
false

Whether or not the select is disabled.

format
:
String
=
"%Y-%m-%d"

The format for the time in the input.

formatter
:
Function(Time, Time.Format.Language, String, String)
=
Time.format

The formatter for the time in the input.

invalid
:
Bool
=
false

Whether or not the select is invalid.

language
:
Time.Format.Language
=
Time.Format:ENGLISH

The language to use for time formatting.

offset
:
Number
=
5

The offset of the dropdown from the input.

onChange
:
Function(Time, Promise(Void))
=
Promise.never1

The change event handler.

position
:
Ui.Position
=
Ui.Position::BottomRight

The position of the dropdown.

size
:
Ui.Size
=
Ui.Size::Inherit

The size of the select.

value
:
Time
=
Time.today()

The current value (as Time).

Functions

handleKeyDown
(
event
:
Html.Event
)

Handles the keydown event.

handleMonthChange
(
value
:
Time
)

Handles the month change event.

render
:
Html

Renders the date picker.