Skip to main content

cellWidth

Description

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

<script>
import { getData } from "./common/data";
import { Gantt } from "wx-svelte-gantt";

const data = getData();

</script>

<Gantt tasks={data.tasks} cellWidth={90} />