Skip to main content

selected

Description

Marks tasks as selected

Usage

selected?: number | string;

Parameters

  • selected - an array of tasks IDs

Example

import { getData } from "./common/data";
import { Gantt } from "wx-react-gantt";
import "wx-react-gantt/dist/gantt.css";
import React from "react";

const App = () => {
const data = getData();

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

export default App;