The DayPilot.Link constructor creates a link object from a data item.
Declaration
new DayPilot.Link(data)Parameters
data(object) - link data with the link properties.
The structure of the data object is described in the DayPilot.Link.data property.
Notes
The data object can define fields such as id, from, to, and type, as shown in the example below.
Example
const link = new DayPilot.Link({
id: "link-1",
from: "task-1",
to: "task-2",
type: "FinishToStart"
});See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot