Class: Calendar

ui.Calendar

new ui.Calendar ()

Element representing a calendar view with customizable day panels.

Properties:
Name Type Description
firstDay number

(default: 0) The first day of the week. A value between 0 (Sunday) and 6 (Saturday).

date Array.<number>

(default: today) A tuple of [year, month, date] for the currently selected date.

dayDelegate fengshui.Template

A custom day panel delegate.

Extends

Methods

pickMonth ()

Goes to the month picker.

pickYear ()

Goes to the year picker.

toNextMonth ()

Goes to the next month.

toPreviousMonth ()

Goes to the previous month.

toToday ()

Goes to the current day.

Events

dateSelected

Is triggered when the user selected a date.

Name Type Description
date Array.<number>

A [year, month, day] tuple of the selected date.