Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ Frappe Gantt offers a wide range of options to customize your chart.
| `container_height` | Height of the container. | `auto` - dynamic container height to fit all tasks - _or_ any positive integer (for pixels). | `auto` |
| `column_width` | Width of each column in the timeline. | Any positive integer. | 45 |
| `date_format` | Format for displaying dates. | Any valid JS date format string. | `YYYY-MM-DD` |
| `display_arrows` | Should the arrows linking dependencies be displayed | `true`, `false` | `true` |
| `upper_header_height` | Height of the upper header in the timeline (in pixels). | Any positive integer. | `45` |
| `lower_header_height` | Height of the lower header in the timeline (in pixels). | Any positive integer. | `30` |
| `snap_at` | Snap tasks at particular intervel while resizing or dragging. | Any _interval_ (see below) | `1d` |
Expand Down
1 change: 1 addition & 0 deletions src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const DEFAULT_OPTIONS = {
container_height: 'auto',
column_width: null,
date_format: 'YYYY-MM-DD HH:mm',
display_arrows : true,
upper_header_height: 45,
lower_header_height: 30,
snap_at: null,
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,7 @@ export default class Gantt {

make_arrows() {
this.arrows = [];
if (!this.options.display_arrows) return;
for (let task of this.tasks) {
let arrows = [];
arrows = task.dependencies
Expand Down