hideCompletedTasks()
Description
Switches To Do List to the mode when completed tasks are hidden from the page
Usage
hideCompletedTasks(): void;
Example
const { ToDo, Toolbar } = todo;
const { task, projects } = getData();
const list = new ToDo("#root", {
tasks,
projects
});
const toolbar = new Toolbar("#toolbar", {
api: list.api,
});
list.hideCompletedTasks();
Change log: Added in v1.1
Related article: Show/hide completed tasks