Skip to main content

cellWidth

Description

Optional. Defines the width of a cell in pixels

Usage

cellWidth?: number;

Parameters

  • cellWidth - the width of a cell in pixels; 100 is set by default

Example

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

const data = getData();

export default function App() {
return <Gantt tasks={data.tasks} cellWidth={90} />;
}