EventSettings

Holds the configuration of event related options and dataSource binding to Schedule.

Properties

dataSource

Object[] | DataManager

With this property, the event data will be bound to Schedule.
The event data can be passed either as an array of JavaScript objects,
or else can create an instance of DataManager
in case of processing remote data and can be assigned to the dataSource property.
With the remote data assigned to dataSource, check the available
adaptors to customize the data processing.

Defaults to []

enableTooltip

boolean

When set to true will display the normal tooltip over the events with its subject, location, start and end time.

fields

Defines the collection of default event fields to be bind to the Schedule.

Defaults to null

query

Query

Defines the external query
that will be executed along with the data processing.

Defaults to null

resourceColorField

string

Defines the resource name, to decides the color of which particular resource level is to be applied on appointments, when
grouping is enabled on scheduler.
{% codeBlock src=“schedule/resource-color-field-api/index.ts” %}{% endcodeBlock %}

Defaults to null

template

string

It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying
it onto the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
{% codeBlock src=“schedule/event-template-api/index.ts” %}{% endcodeBlock %}

Defaults to null

tooltipTemplate

string

It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto tooltip.
All the event fields mapped with Schedule dataSource can be accessed within this template code.
{% codeBlock src=“schedule/tooltip-template-api/index.ts” %}{% endcodeBlock %}