Try Install Learn Blog API Packages GitHub
Pages

Ui.Calendar

A simple calendar component where the days can be selected.

Properties

changeMonthOnSelect
:
Bool
=
false

Wether 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

Wether or not the component is disabled.

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
:
Number
=
16

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.