Skip to main content

id

Description

Optional. The ID of the To Do List

info

Auto-generated, provides correct work of the component parts, such as Toolbar

Usage

id?: string | number;

Example

const { ToDo, Toolbar } = todo;
const { tasks, users, projects } = getData();

// create To do list
const list = new ToDo("#root", {
tasks,
users,
projects,
id: "root"
});

const toolbar = new Toolbar("#toolbar", {
api: list.api,
});