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

import { getData } from "../data";
import { Gantt } from "wx-react-gantt";

const data = getData();

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

export default App;