Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.5.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.

invalid
:
Bool
=
false

Whether or not the select is invalid.

offset
:
Number
=
5

The offset of the dropdown from the input.

onChange
:
Function(Time, Promise(Never, 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.