Skip to main content

destructor()

Description

Removes all HTML elements of the Toolbar, and detaches all related events

Usage

destructor(): void;

Example

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

const list = new ToDo("#root", {
tasks,
users,
projects,
});
const toolbar = new Toolbar("#toolbar", {
api: list.api,
});

toolbar.destructor();