The data property holds the raw link data. Use this structure when passing link data to DayPilot.Link() constructor, when loading links to Scheduler and Gantt Chart components.
Core properties:
from
(source task id)
to
(target task id)
id
(optional)
type
(optional, default type is "FinishToStart"
)
Other properties:
width
(integer) - custom line width
color
(string) - custom link color
style
(string) - custom line style, uses border-style CSS syntax
cssClass
(string) - CSS class that will be added to all parts (elements) of the link
layer
(string) - determines the layer relative to events: "Above" | "Below" (default is "Above")
text
(string) - text to be displayed above the link curve (supported for curved links of the "FinishToStart" type since version 2023.4.5810)
textAlignment
("start" | "center" | "end") - alignment of the link text (since version 2024.1.5898)