Skip to main content

Read-only mode

To make the To Do List read-only, set the readonly configuration property to true.

const { ToDo, Toolbar } = todo;

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

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

In this mode, the tasks are non-editable. You will be able only to select a task and mark it as complete or incomplete.

Example‚Äč