readonly
Description
Optional. 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 setup>
import { getData } from "./data";
import { Gantt } from "@svar-ui/vue-gantt";
const {scales, tasks, links} = getData();
const readonly = true;// readonly mode is enabled
</script>
<template>
<Gantt :tasks="tasks" :scales="scales" :links="links" :readonly="readonly" />
</template>
Related sample: Read-only mode