readonly
Description
Prevents making changes to the data in GanttUsage
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} />