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.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).

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

The language to use for time formatting.

month
:
Time
=
Time.today()

The month to display.

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

The change event handler.

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

The month change event handler.

readonly
:
Bool
=
false

Whether or not the component is readonly.

selectedDays
:
Set(Time)
=
Set.empty()

The days to highlight as selected.

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

The size of the component.

Functions

handleCellClick
(
day
:
Time
)
:
Promise(Void)

Event handler for the cell click.

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

Event handler for the chevron left icon click.

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

Event handler for the chevron right icon click.

render
:
Html

Renders the component.