Try Install Learn Blog API Packages GitHub
Pages
mint-ui

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

Ui.Calendar

A simple calendar component where the days can be selected.

Properties

changeMonthOnSelect
:
Bool
=
false

Whether or not to trigger the onMonthChange event if clicking on a day in an other month.

day
:
Time
=
Time.today()

The selected day.

disabled
:
Bool
=
false

Whether or not the component is disabled.

embedded
:
Bool
=
false

Whether or not the calender is embedded (in a picker for example).

month
:
Time
=
Time.today()

The month to display.

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

The change event handler.

onMonthChange
:
Function(Time, Promise(Never, Void))
=
Promise.never1

The month change event handler.

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

The size of the component.

Functions

handleCellClick
(
day
:
Time
)
:
Promise(Never, Void)

Event handler for the cell click.

handleChevronLeftClick
(
event
:
Html.Event
)
:
Promise(Never, Void)

Event handler for the chevron left icon click.

handleChevronRightClick
(
event
:
Html.Event
)
:
Promise(Never, Void)

Event handler for the chevron right icon click.

render
:
Html

Renders the component.