SchedulerDom
Properties
2
Properties
2Functions
7
Functions
7Returns a single HTMLElement representing an event record assigned to a specific resource.
| Parameter | Type | Description |
|---|---|---|
assignmentRecord | AssignmentModel | An assignment record |
The element representing the event record
Returns a single HTMLElement representing an event record assigned to a specific resource.
| Parameter | Type | Description |
|---|---|---|
eventRecord | EventModel | An event record |
resourceRecord | ResourceModel | A resource record |
The element representing the event record
Returns all the HTMLElements representing an event record.
| Parameter | Type | Description |
|---|---|---|
eventRecord | EventModel | An event record |
resourceRecord | ResourceModel | A resource record |
The element(s) representing the event record
Returns an assignment record for a DOM element
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | The DOM node to lookup |
The assignment record
Returns the event record for a DOM element
| Parameter | Type | Description |
|---|---|---|
elementOrEvent | HTMLElement | Event | The DOM node to lookup |
The event record
Resolves the resource based on a dom element or event. In vertical mode, if resolving from an element higher up in the hierarchy than event elements, then it is required to supply coordinates since resources are virtual columns.
| Parameter | Type | Description |
|---|---|---|
elementOrEvent | HTMLElement | Event | The HTML element or DOM event to resolve a resource from |
xy | Number[] | X and Y coordinates, required in some cases in vertical mode, disregarded in horizontal |
The resource corresponding to the element, or null if not found.
Product agnostic method which yields the ResourceModel record which underpins the row which encapsulates the passed element. The element can be a grid cell, or an event element, and the result will be a ResourceModel
| Parameter | Type | Description |
|---|---|---|
elementOrEvent | HTMLElement | Event | The HTML element or DOM event to resolve a record from |
The resource corresponding to the element, or null if not found.