Skip to main content

getRows()

Description

Gets a promise with the rows data

info

The getRows() method is a part of the RestDataProvider service intended for working with server

Usage

getRows(): promise;

Returns

The getRows() method sends a request to the server by the GET method and returns a promise with the rows data

Example

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

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

Related articles: Working with server