Skip to content

Class: CalendarProxy

Hierarchy

Implements

Summary

Constructors

Properties

Class Properties

Currently none in this class.

Inherited Properties

Accessors

Class Accessors

Currently none in this class.

Inherited Accessors

Methods

Class Methods

Inherited Methods

Constructors

constructor

+ new CalendarProxy(context: IContext): CalendarProxy

Overrides SectionProxy.constructor

Parameters:

Name Type
context IContext

Returns: CalendarProxy

Methods

getCalendarType

getCalendarType(): string

Implementation of ICalendarProxy

Returns: string


getEventLoadRange

getEventLoadRange(): number

Implementation of ICalendarProxy

Returns: number

returns number of months before and after the currently selected month to load events. This is used to optimize the loading of events in the calendar. For example, if set to 1, events for the current month, the previous month, and the next month will be loaded. If set to 2, events for the current month, the two previous months, and the two next months will be loaded. This property is only applicable when CalendarType is set to Month. If set to 0, all events will be loaded.


getEvents

getEvents(): any[]

Implementation of ICalendarProxy

Returns: any[]

return array of static events defined for the calendar section.


getEventsOfSelectedDate

getEventsOfSelectedDate(): any

Implementation of ICalendarProxy

Returns: any

return event of selected date if any.


getEventsOfSelectedDateRange

getEventsOfSelectedDateRange(): any[]

Implementation of ICalendarProxy

Returns: any[]

return array of events within selected date range.


getIndicators

getIndicators(): any[]

Implementation of ICalendarProxy

Returns: any[]

return array of indicators displayed on the calendar.


getSelectedDate

getSelectedDate(): Date

Implementation of ICalendarProxy

Returns: Date


getSelectedDateRange

getSelectedDateRange(): IDateRangeProxy

Implementation of ICalendarProxy

Returns: IDateRangeProxy


getTargets

getTargets(): any[]

Implementation of ICalendarProxy

Returns: any[]

return array of targets to be used for the calendar section. Each target is represented by a binding or rule that returns an array of data items. The calendar will use these targets to populate the events and execute the rules defined in the Event/IndicatorName to determine the events in the calendar.


scrollToDate

scrollToDate(dateInput: any): void

Implementation of ICalendarProxy

Parameters:

Name Type Description
dateInput any

Returns: void


setSelectedDate

setSelectedDate(dateInput: any): void

Implementation of ICalendarProxy

Parameters:

Name Type Description
dateInput any

Returns: void


setSelectedDateRange

setSelectedDateRange(dateRange: IDateRangeProxy): void

Implementation of ICalendarProxy

Parameters:

Name Type Description
dateRange IDateRangeProxy

Returns: void