HorizontalRendering

Handles event rendering in Schedulers horizontal mode. Reacts to project/store changes to keep the UI up to date.

Configs

1
bufferSize: Number= 150

Amount of pixels to extend the current visible range at both ends with when deciding which events to render. Only applies when using labels or for milestones

Functions

4

Gets displaying item end side

ParameterTypeDescription
eventRecordEventModel
Returns: start | end | top | bottom -

'start' / 'end' / 'top' / 'bottom'

Gets displaying item start side

ParameterTypeDescription
eventRecordEventModel
Returns: start | end | top | bottom -

'start' / 'end' / 'top' / 'bottom'

Gets the Region, relative to the timeline view element, representing the passed row and optionally just for a certain date interval.

ParameterTypeDescription
rowRecordModel

The row record

startDateDate

A start date constraining the region

endDateDate

An end date constraining the region

Returns: Rectangle -

The Rectangle which encapsulates the row

Gets the region, relative to the page, represented by the schedule and optionally only for a single resource. This method will call getDateConstraints to allow for additional resource/event based constraints. By overriding that method you can constrain events differently for different resources.

ParameterTypeDescription
resourceRecordResourceModel

(optional) The row record

eventRecordEventModel

(optional) The event record

Returns: Rectangle -

The region of the schedule