Skip to main content

getLinks()

Description

Retrieves a promise containing the links data

info

The getLinks() method belongs to the RestDataProvider service, designed for server interactions.

Usage

getLinks(): promise;

Returns

The getLinks() method makes a GET request to the server and returns a promise that resolves with the links data.

Example

const url = "https://some_backend_url";
const restProvider = new kanban.RestDataProvider(url);

Promise.all([
restProvider.getCards(),
restProvider.getColumns(),
restProvider.getLinks(),
]).then(([cards, columns, links]) => {
const board = new kanban.Kanban("#root", {
cards,
columns,
links
});
board.api.setNext(restProvider);
});

Change log: This method was introduced in version 1.5

Related articles: Working with server