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

import { getData } from "./data";
import { Gantt } from "wx-react-gantt";
import "wx-react-gantt/dist/gantt.css";

const MyComponent = () => {
const { scales, tasks, links } = getData();
const readonly = true; // readonly mode is enabled

return <Gantt tasks={tasks} scales={scales} links={links} readonly={readonly} />;
};

export default MyComponent;