activeTask
Description
Defines an active task for which the Editor dialog is openedUsage
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";
import "wx-react-gantt/dist/gantt.css";
const data = getData();
function App() {
return <Gantt tasks={data.tasks} activeTask={4} />;
}
export default App;