Skip to main content

readonly

Description

Prevents making changes to the data in Gantt

Usage

readonly?: boolean;

Parameters

readonly - (optional) if it's set to true, it enables the readonly mode of Gantt; if false, the mode is disabled (default)

Example

<script>
import { getData } from "./data";
import { Gantt } from "wx-svelte-gantt";

const {scales, tasks, links} = getData();

let readonly = true;// readonly mode is enabled

</script>

<Gantt {tasks} {scales} {links} {readonly} />