TimelineDomEvents

Configs

1

Set to true to ignore reacting to DOM events (mouseover/mouseout etc) while scrolling. Useful if you want to maximize scroll performance.

Properties

3

Class hierarchy

isTimelineDomEvents: Boolean= truereadonly
Identifies an object as an instance of TimelineDomEvents class, or subclass thereof.
isTimelineDomEvents: Boolean= truereadonlystatic
Identifies an object as an instance of TimelineDomEvents class, or subclass thereof.

Dates

The currently hovered timeline context. This is updated as the mouse or pointer moves over the timeline.

Events

4

Fires after a click on a time axis cell

// Adding a listener using the "on" method
timelineDomEvents.on('timeAxisHeaderClick', ({ source, startDate, endDate, event }) => {

});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Fires after a right click on a time axis cell

// Adding a listener using the "on" method
timelineDomEvents.on('timeAxisHeaderContextMenu', ({ source, startDate, endDate, event }) => {

});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Fires after a double click on a time axis cell

// Adding a listener using the "on" method
timelineDomEvents.on('timeAxisHeaderDblClick', ({ source, startDate, endDate, event }) => {

});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Fired when the pointer-activated timelineContext has changed.

// Adding a listener using the "on" method
timelineDomEvents.on('timelineContextChange', ({ oldContext, context }) => {

});
ParameterTypeDescription
oldContextTimelineContext

The tick/resource context being deactivated.

contextTimelineContext

The tick/resource context being activated.

Event handlers

4

Called after a click on a time axis cell

new TimelineDomEvents({
    onTimeAxisHeaderClick({ source, startDate, endDate, event }) {

    }
});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Called after a right click on a time axis cell

new TimelineDomEvents({
    onTimeAxisHeaderContextMenu({ source, startDate, endDate, event }) {

    }
});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Called after a double click on a time axis cell

new TimelineDomEvents({
    onTimeAxisHeaderDblClick({ source, startDate, endDate, event }) {

    }
});
ParameterTypeDescription
sourceTimeAxisColumn | VerticalTimeAxisColumn

The column object

startDateDate

The start date of the header cell

endDateDate

The end date of the header cell

eventEvent

The event object

Called when the pointer-activated timelineContext has changed.

new TimelineDomEvents({
    onTimelineContextChange({ oldContext, context }) {

    }
});
ParameterTypeDescription
oldContextTimelineContext

The tick/resource context being deactivated.

contextTimelineContext

The tick/resource context being activated.