Properties
Every property the Gantt control has, generated from the manifest the control ships with, so the names always match.
Text size
Text size (%) (textSize) makes every label, value and title in the Gantt bigger or smaller together, from 75 to 200. The default is 100. Rows, the task list and the headers grow with the text, so nothing is squeezed or cut off. Bars and milestones keep their size. Printing and PNG export keep their own fixed sizes, which are set for A4 and A3 paper. A value outside 75 to 200 uses the nearest limit.

Text sizes by role (textSizes) is optional, for when one kind of text should differ from the rest. It takes JSON with sizes in pixels at 100 %, and Text size still multiplies them. For example, {"body": 14, "title": 18} makes names and cell text 14 px and titles 18 px at 100 %, and 21 px and 27 px at 150 %.
| Role | Used for | Size at 100 % |
|---|---|---|
caption |
Small details, legends and footnotes | 11 px |
body |
Names and cell text | 13 px |
label |
Time-scale labels | 12 px |
value |
Values and notes | 12 px |
callout |
Badges and annotations | 12 px |
header |
Column, lane and group headers | 13 px |
title |
Titles and section headings | 16 px |
Unknown roles, sizes outside 6 to 96 px and JSON that doesn’t parse are ignored, so a typo never breaks the control.
In code apps, set textScale (1 is 100 %, so 1.5 is 150 %) and textSizes (for example { body: 14 }) as props.
All properties
| Property | Type | Kind | What it does |
|---|---|---|---|
| Title | SingleLine.Text | Input | Default: Work plan. |
| Default zoom | Enum | Input | Default: month. |
| Theme | Enum | Input | Default: light. |
| Accent colour (hex) | SingleLine.Text | Input | |
| Text size (%) | Whole.None | Input | Makes every label, value and title bigger or smaller together: 75 to 200, default 100. Rows grow with the text. Default: 100. |
| Text sizes by role (JSON, optional) | SingleLine.Text | Input | Advanced: sizes in px at 100%, e.g. {"body": 14, "title": 18}. Roles: caption, body, label, value, callout, header, title. Text size still applies. |
| Licence key | SingleLine.Text | Input | Your Ninth Forge licence key. Without one the control works fully and shows a small watermark. |
| Selected task (output) | SingleLine.Text | Output | |
| Allow editing | TwoOptions | Input | Drag, resize, set progress and link tasks on the chart. Users still need write access to the table. Default: true. |
| Allow adding tasks | TwoOptions | Input | Show the Add task row and the row menu. Model-driven apps open the quick create form of the table. Default: true. |
| Save mode | Enum | Input | Auto saves directly in model-driven apps and raises OnTaskChange in canvas apps. Default: auto. |
| Last change (output, JSON) | Multiple | Output | The last edit as JSON, for OnTaskChange in canvas apps. |
| Diagnostics (output, JSON) | Multiple | Output | What the control received: rows, dated and named rows, the kind of IDs, mapped columns and the licence status. Names and counts only. |
| Add request (output, JSON) | Multiple | Output | Where the user asked for a new task, for OnAddTask in canvas apps. |
| Grid columns | SingleLine.Text | Input | Columns beside the task name, e.g. owner, progress, start, end, duration. Empty shows owner and progress; none shows the task name only. Users can change them from the Columns menu. |
| List width (px) | Whole.None | Input | Starting width of the task list, in px. Empty uses the default (360 at 100 percent text). Users can still drag the divider. |
| Working week | Enum | Input | Mon to Fri counts working days and snaps drags off weekends. All days counts every day. Default: monFri. |
| Open records in | Enum | Input | Double-click or Enter on a task opens its form here (model-driven apps). Default: sidePanel. |
| Tasks (required) | Dataset | Bound | |
| Start date (required) | DateAndTime.DateOnly | Column | |
| End date | DateAndTime.DateOnly | Column | |
| Progress (0-100) | Whole.None / Decimal / FP | Column | |
| Parent (phase) | Lookup.Simple | Column | |
| Predecessor | Lookup.Simple | Column | |
| Owner | Lookup.Simple / Lookup.Owner / SingleLine.Text | Column | |
| Is milestone | TwoOptions | Column | |
| Baseline start | DateAndTime.DateOnly | Column | |
| Baseline end | DateAndTime.DateOnly | Column | |
| Name (canvas, text) | SingleLine.Text | Column | Canvas apps: a text column with each task name, when Items is not the table itself and the name does not come through. |
| Record ID (canvas, text) | SingleLine.Text | Column | Canvas apps: a text column holding the ID of each row, when Items is not the table itself (AddColumns or a collection). Saves and selection then use it. |
| Parent ID (canvas, text) | SingleLine.Text | Column | Canvas apps cannot map a lookup: a text column holding the parent ID groups tasks under phases. |
| Predecessor ID (canvas, text) | SingleLine.Text | Column | Canvas apps cannot map a lookup: a text column holding the predecessor ID draws dependencies. |
| OnTaskChange | Event | Event | A task was edited on the chart (save mode: event). Read Self.lastChange. |
| OnAddTask | Event | Event | The user asked to add a task. Read Self.addRequest. |
| OnOpenTask | Event | Event | The user opened a task (double-click or Enter) in a canvas app. Read Self.selectedTaskId. |
Last updated