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
import { getData } from "./data";
import { Gantt } from "wx-react-gantt";
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;