Skip to main content

getRows()

Description

Retrieves a promise containing the rows data

info

The getRows() method is part of the RestDataProvider service designed for server interactions

Usage

getRows(): promise;

Returns

The getRows() method makes a GET request to the server and returns a promise that resolves 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