Skip to main content

activeTask

Description

Optional.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

import { getData } from "../data";
import { Gantt } from "@svar-ui/react-gantt";

const data = getData();

export default function Example() {
return <Gantt tasks={data.tasks} activeTask={4} />;
}