Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.05 KB

File metadata and controls

50 lines (36 loc) · 1.05 KB
sidebar_label readonly
title readonly Config
description You can learn about the readonly config in the documentation of the DHTMLX JavaScript To Do List library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX To Do List.

readonly

Description

@short: Optional. Makes To Do List readonly

:::tip After you enable the readonly mode, the add Task button and 3 dots icons will be hidden in the toolbar and list

In the readonly mode it is only possible to mark tasks as completed/uncompleted :::

Usage

readonly?: boolean;

Default config

readonly: false // readonly mode is disabled

Example

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

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

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

Related article: Read-only mode