addLink()
Description
Adds a new link into Kanban
Usage
addLink({
id?: string | number,
link: object
}): void;
Parameters
id
- (optional) the ID of the new linklink
- (required) the data object of the new link. The full list of the link parameters can be found 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: The method was added in v1.5