Skip to content

Commit

Permalink
Merge pull request #205 from melfore/203-docs-add-chapter-on-gantt-mo…
Browse files Browse the repository at this point in the history
…de-usage

[Docs] Added chapter on gantt mode usage
  • Loading branch information
CrisGrud committed Feb 29, 2024
2 parents 8026e28 + 2490ab5 commit e6141a6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ There can be from none to many tasks per each resource and tasks can be moved ac

For each user interaction with tasks there is a dedicated hook function exposed by the component's props. This enables various use cases like displaying the details of a task inside a modal or calling an API each time the task is moved.

### Gantt

In order to create and display connection between tasks is neccesary setting dedicated props:
RelatedTasks is a string array prop of TaskData that contains Ids of related Tasks.
EnableLines is a global prop for the visualization of the connections.

In this case OnTasksChange return also array of all tasks id that are inpacted by changed end of a the task at hand, and value of time in milliseconds of this variation.

###By realtedTasks is mean these tasks that their start can depends of the end of the task in question.

![gantt](./assets/gantt.png)

### Custom display

Size of columns and rows can be adjusted using dedicated props:
Expand Down
Binary file added assets/gantt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6141a6

Please sign in to comment.