cellWidth
Description
Defines the width of a cell in pixelsUsage
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 "wx-react-gantt";
import "wx-react-gantt/dist/gantt.css";
const Component = () => {
const data = getData();
return <Gantt tasks={data.tasks} cellWidth={90} />;
};
export default Component;