Skip to main content

Gantt

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️The className of the component
styleobjectThe style of the component
columnDefsarrayDefinition of columns in tables, supported ag-grid All columnDefs
dataSources{ task: object, link: object, calendar: object }data source
relation{ colId: string, value: string }Gantt data as relational configuration of form subtables
mapping{ text: string, start_date: string, end_date: string, duration: string, progress: string, parent: string, type: string }data mapping
ganttConfigobjectConfiguration of DHTMLX Gantt component,Official documentation
dateOptions{ noTimeZone: bool, timeZone: string, showTime: bool, endDateIncludeSelf: bool }Date configuration
toolbarFieldsarrayCustom elements of toolbar configured using json
toolbarChildrennodeCustomize elements using jsx's toolbar
pinnedFilterArray<string>It is displayed in the filter column of the Filter Panel by default and cannot be deleted
settingKeystringSave the key set, and automatically generate it with id by default.
defaultFilterModelConditionalListPropertyPropType(DataFilters)The default filter conditions of the table can be changed through the interface.
suppressSaveSettingboolfalseDo not save user-adjusted component settings
suppressAddButtonboolfalseDisable the default "Add" button
addButtonPropsobjectAdded attributes of buttons by default

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component
ganttobjectDHTMLX Gantt's API interface, Official documentation
refresh() => voidRefresh data