Skip to main content

displayMode

Description

Optional. Defines which areas of the Gantt chart to display

Usage

displayMode?: "all" | "grid" | "chart";

Parameters

  • "all" (default) - displays both the grid and the chart areas
  • "grid" - displays only the grid area
  • "chart" - displays only the chart area

Example

import { getData } from "./common/data";
import { Gantt } from "@svar-ui/react-gantt";

const { tasks, scales } = getData();

function App() {
return <Gantt tasks={tasks} scales={scales} displayMode="grid" />;
}

export default App;