2020-07-24 10:14:18 +03:00
2020-07-23 22:14:48 +03:00
2020-07-22 20:50:43 +03:00
2020-07-22 23:33:13 +03:00
2020-07-24 10:14:18 +03:00
2020-07-22 20:50:43 +03:00
2020-07-23 12:26:46 +03:00
2020-07-22 20:50:43 +03:00
2020-07-22 20:56:43 +03:00
2020-07-23 12:26:46 +03:00
2020-07-23 22:01:07 +03:00
2020-07-24 10:14:18 +03:00
2020-07-22 20:50:43 +03:00
2020-07-22 20:50:43 +03:00
2020-07-22 23:50:25 +03:00

gantt-task-react

Interactive Gantt Chart for React with TypeScript.

How to use it

let tasks: Task[] = [
    {
      start: new Date(2020, 1, 1),
      end: new Date(2020, 1, 2),
      name: 'Idea',
      id: 'Task 0',
      progress: 45,
      isDisabled: true,
      styles: { progressColor: '#ffbb54', progressSelectedColor: '#ff9e0d' },
    },
    ...
];
<Gantt tasks={tasks} />

You may handle actions

<Gantt
  tasks={tasks}
  viewMode={view}
  onDateChange={onTaskChange}
  onTaskDelete={onTaskDelete}
  onProgressChange={onProgressChange}
  onDoubleClick={onDblClick}
/>

Gantt Configuration

  • EventOption
Parameter Name Type Required Description
onDoubleClick (task: Task) => any No Specifies the function to be executed on the bar`s onDoubleClick event.
onTaskDelete (task: Task) => void/Promise No Specifies the function to be executed on the bar`s on Delete button press event.
onDateChange (task: Task) => void/Promise No Specifies the function to be executed when drag bar`s event on timeline has finished.
onProgressChange (task: Task) => void/Promise No Specifies the function to be executed when drag bar`s progress event has finished
timeStep number No A time step value for onDateChange. Specify in milliseconds
  • DisplayOption
    Parameter Name Type Required Description
    viewMode enum No Specifies the time scale. Quarter Day, Half Day, Day, Week(ISO-8601, 1st day is Monday), Month
    locale string No Specifies the month name language. Able formats: ISO 639-2, Java Locale.

Work in progress

Description
No description provided
Readme 3 MiB
Languages
TypeScript 92.7%
CSS 5.9%
HTML 1.4%