api
Description
Required. An object with the internal API of To Do List
info
Usage of the internal API of To Do List is necessary for correct work of the search bar and controls located in the Toolbar
Usage
api: object;
Example
const { ToDo, Toolbar } = todo;
const { tasks, users, projects, tags } = getData();
const list = new ToDo("#root", {
tasks,
users,
projects,
tags,
});
const toolbar = new Toolbar("#toolbar", {
api: list.api,
});
Related article: