addLink()
Description
Inserts a new link into the Kanban board.
Usage
addLink({
id?: string | number,
link: object
}): void;
Parameters
id
- (optional) the identifier for the new linklink
- (required) the data object representing the new link. The complete list of link parameters is available here
Example
// create Kanban
const board = new kanban.Kanban("#root", {
columns,
cards
});
// add new link
board.addLink({
id: 3,
link: {
masterId: 4,
slaveId: 6,
relation: "relatesTo",
}
});
Change log: This method was introduced in v1.5