Docs menu

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.

The Customer portal relaunch plan at Text size 150 %: task names, dates and headers are larger and the rows are taller, while the bars keep their shape.

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

PropertyTypeKindWhat it does
TitleSingleLine.TextInput Default: Work plan.
Default zoomEnumInput Default: month.
ThemeEnumInput Default: light.
Accent colour (hex)SingleLine.TextInput
Text size (%)Whole.NoneInputMakes 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.TextInputAdvanced: sizes in px at 100%, e.g. {"body": 14, "title": 18}. Roles: caption, body, label, value, callout, header, title. Text size still applies.
Licence keySingleLine.TextInputYour Ninth Forge licence key. Without one the control works fully and shows a small watermark.
Selected task (output)SingleLine.TextOutput
Allow editingTwoOptionsInputDrag, resize, set progress and link tasks on the chart. Users still need write access to the table. Default: true.
Allow adding tasksTwoOptionsInputShow the Add task row and the row menu. Model-driven apps open the quick create form of the table. Default: true.
Save modeEnumInputAuto saves directly in model-driven apps and raises OnTaskChange in canvas apps. Default: auto.
Last change (output, JSON)MultipleOutputThe last edit as JSON, for OnTaskChange in canvas apps.
Diagnostics (output, JSON)MultipleOutputWhat 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)MultipleOutputWhere the user asked for a new task, for OnAddTask in canvas apps.
Grid columnsSingleLine.TextInputColumns 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.NoneInputStarting width of the task list, in px. Empty uses the default (360 at 100 percent text). Users can still drag the divider.
Working weekEnumInputMon to Fri counts working days and snaps drags off weekends. All days counts every day. Default: monFri.
Open records inEnumInputDouble-click or Enter on a task opens its form here (model-driven apps). Default: sidePanel.
Tasks (required)DatasetBound
Start date (required)DateAndTime.DateOnlyColumn
End dateDateAndTime.DateOnlyColumn
Progress (0-100)Whole.None / Decimal / FPColumn
Parent (phase)Lookup.SimpleColumn
PredecessorLookup.SimpleColumn
OwnerLookup.Simple / Lookup.Owner / SingleLine.TextColumn
Is milestoneTwoOptionsColumn
Baseline startDateAndTime.DateOnlyColumn
Baseline endDateAndTime.DateOnlyColumn
Name (canvas, text)SingleLine.TextColumnCanvas 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.TextColumnCanvas 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.TextColumnCanvas apps cannot map a lookup: a text column holding the parent ID groups tasks under phases.
Predecessor ID (canvas, text)SingleLine.TextColumnCanvas apps cannot map a lookup: a text column holding the predecessor ID draws dependencies.
OnTaskChangeEventEventA task was edited on the chart (save mode: event). Read Self.lastChange.
OnAddTaskEventEventThe user asked to add a task. Read Self.addRequest.
OnOpenTaskEventEventThe user opened a task (double-click or Enter) in a canvas app. Read Self.selectedTaskId.

Last updated