v7.3.0

TimelineContext

This class encapsulates a schedule timeline tick context based on a DOM event. This will include the row and resource information and the tick and time information for a DOM pointer event detected in the timeline.

scheduler.on('scheduleClick', (context) => {
    console.log('Clicked date:', context.date);
    console.log('Resource:', context.resourceRecord.name);
    console.log('Tick index:', context.tickIndex);
});

Useful configs and functions

Member Description
date Date at the pointer position
resourceRecord Resource record at the pointer position
eventRecord Event record at the pointer (if any)
tick Tick data object at the pointer position
row Grid row at the pointer position
domEvent Original DOM event

See also

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class

    Source path

    Scheduler/util/TimelineContext.js

    Contents