getLinks()
Description
Gets a promise with the links data
info
The getLinks() method is a part of the RestDataProvider service intended for working with server
Usage
getLinks(): promise;
Returns
The getLinks() method sends a request to the server by the GET method and returns a promise 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: The method was added in v1.5
Related articles: Working with server