Skip to main content

taskTypes

Description

An array of objects containing the tasks types data

Usage

taskTypes?: [
{
id: string,
label?: string
}
];

Parameters

  • id - (required) the task ID which can be one of the following: task, project, milestone
  • label - (optional) the task title

Example

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

const data = getData();
const taskTypes = [
{ id: "task", label: "Project Task" },
{ id: "project", label: "Project" },
];

</script>

<Gantt tasks={data.tasks} {taskTypes} />