getCards()
Description
Retrieves a promise containing the cards data
info
The getCards() method is part of the RestDataProvider service designed for server interactions
Usage
getCards(): promise;
Returns
The getCards() method initiates a GET request to the server and returns a promise that resolves with the cards data
Example
const url = "https://some_backend_url";
const restProvider = new kanban.RestDataProvider(url);
Promise.all([
    restProvider.getCards(),
    restProvider.getColumns()
]).then(([cards, columns]) => {
    const board = new kanban.Kanban("#root", {
        cards,
        columns
    });
    board.api.setNext(restProvider);
});
Related articles: Working with server