Skip to main content

Read-only mode

info

In this mode you cannot create and edit tasks and links, and drag task bars.

To make the entire Gantt read-only, set the readonly property to true and define it inside the Gantt tag.

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

const data = getData();

let readonly = true;
</script>

<Gantt tasks={data.tasks} {readonly} />