Skip to main content

selected

Description

Marks tasks as selected

Usage

selected?: number | string;

Parameters

  • selected - an array of tasks IDs

Example

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

const data = getData();

</script>

<Gantt
tasks={data.tasks}
links={data.links}
scales={data.scales}
selected = {[1, 2, 3]} />