Skip to main content

activeTask

Description

Defines an active task for which the Editor dialog is opened

Usage

activeTask?: number | string;

Parameters

  • activeTask - the ID of an active task (for which the Editor dialog opens at the initialization)

Example

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

const data = getData();
</script>

<Gantt tasks={data.tasks} activeTask={4} />