showCompletedTasks()
Description
Switches To Do List to the mode when completed tasks are shown on the page
Usage
showCompletedTasks(): 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.showCompletedTasks();
Change log: Added in v1.1
Related article: Show/hide completed tasks