@workiom/frappe-gantt 1.0.25 → 1.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/frappe-gantt.es.js +408 -384
- package/dist/frappe-gantt.umd.js +36 -36
- package/package.json +1 -1
- package/src/bar.js +1 -1
- package/src/index.js +99 -55
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ gantt.tasks.append(...)
|
|
|
72
72
|
gantt.tasks.refresh()
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
Each task object accepts an optional `bar_label` string. When
|
|
75
|
+
Each task object accepts an optional `bar_label` string. When defined (including an empty string) and the global `show_bar_label` option is `true`, the bar renders `bar_label` instead of `name`. Only `null` or `undefined` falls back to `name`. To hide bar labels entirely, set the `show_bar_label` option to `false`.
|
|
76
76
|
|
|
77
77
|
### Configuration
|
|
78
78
|
|
|
@@ -108,7 +108,7 @@ Frappe Gantt offers a wide range of options to customize your chart.
|
|
|
108
108
|
| `readonly_dates` | Disables editing task dates. | `true`, `false` | `false` |
|
|
109
109
|
| `readonly` | Disables all editing features. | `true`, `false` | `false` |
|
|
110
110
|
| `scroll_to` | Determines the starting point when chart is rendered. | `today`, `start`, `end`, or a date string. | `today` |
|
|
111
|
-
| `show_bar_label` | Whether to render the text label inside each task bar. When `true`, label text comes from `task.bar_label`
|
|
111
|
+
| `show_bar_label` | Whether to render the text label inside each task bar. When `true`, label text comes from `task.bar_label` when defined (including empty string), otherwise from `task.name`. | `true`, `false` | `true` |
|
|
112
112
|
| `show_expected_progress` | Shows expected progress for tasks. | `true`, `false` | `false` |
|
|
113
113
|
| `task_add_icon_position` | Position of the add task icon relative to task bar. | `null` (hidden), `'before'`, `'after'` | `null` |
|
|
114
114
|
| `today_button` | Adds a button to navigate to today's date. | `true`, `false` | `true` |
|