Gantt Chart API Reference

Properties

Name Type Default Value
autoSchedule boolean false
autoScheduleStrictMode boolean false
autoScrollStep number 5
dataSource {label: string, dateStart: string, dateEnd: string, progress: number, type: string}[]
dayFormat string 'short'
dateEnd any
dateStart any
disabled boolean false
disableAutoScroll boolean false
durationUnit string 'milisecond'
horizontalScrollBarVisibility string 'auto'
inverted boolean false
max any 2100-1-1
min any 1900-1-1
messages object Please expand entry to see value
monthFormat string 'short'
nonworkingDays number[]
nonworkingHours number[] []
popupWindowCustomizationFunction function | null null
selectedIndexes number[]
snapToNearest boolean false
tasks {label: string, dateStart: string, dateEnd: string, progress: number, type: string}[]
taskColumns {label: string, value: string}[] { "label": "Task Name", "value": "label" }
timelineMin any 200
treeMin any 100
treeSize any 100
hourFormat string 'numeric'
timelineHeaderFormatFunction function | null null
verticalScrollBarVisibility string 'auto'
view string 'year'
yearFormat string 'numeric'
weekFormat string 'long'
theme string ''
unfocusable boolean false

Events

Name Type
change Event
progressChangeStart Event
progressChangeEnd Event
dragStart Event
dragEnd Event
resizeStart Event
resizeEnd Event
connectionStart Event
connectionEnd Event
scrollBottomReached Event
scrollTopReached Event

Methods

Name Type Return Type
removeAllConnections(): void Method void
removeConnection(startTaskIndex: number, taskEndIndex: number, connectionType: number): object Method object
removeTaskConnection(taskStartIndex: number, taskEndIndex?: number): string Method string
clearTasks(): void Method void
createConnection(startTaskIndex: number, taskEndIndex: number, connectionType: number): void Method void
collapse(taskIndex: null): void Method void
ensureVisible(item: string | number): void Method void
expand(taskIndex: null): void Method void
getState(): [] Method []
getTaskIndex(task: HTMLElement): number Method number
clearState(): void Method void
loadState(state: []): void Method void
saveState(state: []): void Method void
insertTask(index: string | number, taskObject: object): void Method void
updateTask(index: string | number, taskObject: object): void Method void
removeTask(index: string | number): void Method void
openWindow(index: string | number): void Method void
closeWindow(): void Method void