CalendarPanel
A Panel which displays a month of date cells.
This is a base class for UI widgets like DatePicker which need to display a calendar layout.
This widget is not intended to be used directly
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The date which this CalendarPanel encapsulates.
Has a corresponding runtime date property.
-
The DateHelper format string to format the day names in the header row above the calendar cells.
-
Configure this as true to disable pointer interaction with cells which are outside the range of the current month.
-
Configure as
trueto render Saturdays and Sundays as disabledDates. -
The class name to add to disabled calendar cells.
-
Configure this as
trueto hide cells which are outside the range of the current month. -
A Month Month utility object which encapsulates this Panel's month and provides contextual information and navigation services.
-
The class name to add to calendar cells which are nonWorkingDays.
-
nonWorkingDays : Object<Number, Boolean>
Non-working days as an object where keys are day indices, 0-6 (Sunday-Saturday), and the value is
true. Defaults to nonWorkingDays. -
The class name to add to calendar cells which are in the previous or next month.
-
Configure as
trueto render past dates in a lighter text color.Has a corresponding runtime shadePastDates property.
-
Configure as
trueto show a week number column at the start of the calendar block.Has a corresponding runtime showWeekColumn property.
-
Configure as
trueto always show a six-week calendar. -
The class name to add to the calendar cell which contains today's date.
-
The header text for the week number column, if shown.
Has a corresponding runtime weekColumnHeader property.
-
The week start day, 0 meaning Sunday, 6 meaning Saturday. Defaults to weekStartDay.
-
The class name to add to calendar cells which are weekend dates.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of CalendarPanel class, or subclass thereof.
-
Gets or sets the date that orientates the panel to display a particular month. Changing this causes the content to be refreshed.
Has a corresponding date config.
-
Configure as
trueto render past dates in a lighter text color.Has a corresponding shadePastDates config.
-
Configure as
trueto show a week number column at the start of the calendar block.Has a corresponding showWeekColumn config.
-
The date of the first day cell in this panel. Note that this may not be the first of this panel's current month.
-
The number of rows displayed in this month. If sixWeeks is not set, this may be from 4 to 6.
-
The header text for the week number column, if shown.
Has a corresponding weekColumnHeader config.
-
Identifies an object as an instance of CalendarPanel class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
doRefresh( )private
Implementation of the UI refresh.
-
refresh( )
Refreshes the UI after changing a config that would affect the UI.
-
updateDate( )
The date which this CalendarPanel encapsulates. Setting this causes the content to be refreshed.