| Name | Type | Default |
|
adjustToNonworkingTime
# |
boolean
|
undefined
|
Determines whether nonworkingDays/nonworkingHours are taken into consideration when determining the dateEnd of the tasks. When this property is enabled the dateEnd of the tasks is calculated to include only the actual working time. By default it's disabled and only calendar time is used.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[adjustToNonworkingTime]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
aiProvider
# |
string
|
'anthropic'
|
Sets or gets the AI provider that the Gantt's AI requests are written for: 'anthropic' (Claude, the default) or 'openai'; 'custom' uses the Anthropic format. It sets the request format, the headers and the default model, also for requests sent to aiProxyUrl. It is not used when aiSendRequest is set. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiProvider: 'openai', aiProxyUrl: '/api/ai' });
const aiProvider = $('#myGantt').jqxGantt('aiProvider');
|
|
aiKey
# |
string
|
null
|
Sets or gets the API key that the Gantt sends straight to the provider (in the x-api-key header for Anthropic, as Authorization: Bearer for OpenAI). For local trials only: a key in the page can be read by everyone who opens it. In production leave it empty and set aiProxyUrl or aiSendRequest. With none of the three set, every AI method fails with "AI is not configured". Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiKey: 'YOUR-API-KEY' }); // local trials only
const aiKey = $('#myGantt').jqxGantt('aiKey');
|
|
aiModel
# |
string
|
null
|
Sets or gets the model the AI requests ask for. When null, the provider's default is used: 'claude-opus-4-8' for 'anthropic' and 'custom', 'gpt-4o' for 'openai'. With aiSendRequest, it is passed to your function as request.model. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiProvider: 'openai', aiModel: 'gpt-4o-mini', aiProxyUrl: '/api/ai' });
const aiModel = $('#myGantt').jqxGantt('aiModel');
|
|
aiProxyUrl
# |
string
|
null
|
Sets or gets the URL of your server endpoint that forwards the AI requests to the provider, so the API key stays on the server. The Gantt POSTs the request in the provider's format (see aiProvider) to this URL, with the provider's headers and aiHeaders, and reads the reply in the provider's format. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiProxyUrl: '/api/ai' });
const aiProxyUrl = $('#myGantt').jqxGantt('aiProxyUrl');
|
Sets or gets extra HTTP headers for the AI requests, for example a token your aiProxyUrl endpoint checks. They replace the provider's headers of the same name. Not used with aiSendRequest. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiProxyUrl: '/api/ai', aiHeaders: { 'X-CSRF-Token': 'token-from-your-page' } });
const aiHeaders = $('#myGantt').jqxGantt('aiHeaders');
|
|
aiSendRequest
# |
(request: any, owner: any) => any
|
null
|
Sets or gets a function that sends the AI requests itself, in place of the Gantt's own fetch call. It is called as aiSendRequest(request, gantt), where request is { system, user, model, provider }, and returns the model's reply text, or a Promise of it. When it is set, aiKey, aiProxyUrl and aiHeaders are not used. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({
aiSendRequest: function (request, gantt) {
// request: { system, user, model, provider }; your server returns the model's reply text
return fetch('/api/ai', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(request) })
.then(function (response) { return response.text(); });
}
});
|
|
aiMaxRows
# |
number
|
40
|
Sets or gets how many tasks the AI requests carry: aiCommand, aiAddTask and aiAsk list the first aiMaxRows tasks (in tree order) in the prompt, and aiClassifyTasks labels the first aiMaxRows tasks that are not projects. aiSummarize and aiExplainTask send totals over all the tasks instead. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt({ aiMaxRows: 100 });
const aiMaxRows = $('#myGantt').jqxGantt('aiMaxRows');
|
|
autoSchedule
# |
boolean
|
undefined
|
Recalculates the tasks that are connected and re-schedules them according to their connections. If no connections are present, autoScheduling has no effect until a connection is created. Connection types determines the start/end date limits of the tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[autoSchedule]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
autoScheduleStrictMode
# |
boolean
|
undefined
|
Affects the tasks only when autoSchedule is enabled. When set to true, the tasks are strictly scheduled ( according to their connections ) and dragging is not allowed. Users can set lag to specific connections to determine a delay of overlap of between the two tasks ( interval of time in milliseconds ). Lag one of the attributes of a task connection and should be set in the dataSource where the task connections are defined.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[autoScheduleStrictMode]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
autoScrollStep
# |
number
|
undefined
|
Determines the scroll speed when dragging when autoScroll property is set.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[autoScrollStep]="10"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
columnMenu
# |
boolean
|
undefined
|
Enabled/Disables the column header menu. When enabled and the user hovers a column header, a drop down button will appear that triggers a column menu for quick actions like sorting, filtering, etc. The actions depend on the enabled Gantt features, for example the filtering action will be available only if filtering is enabled for the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[columnMenu]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
columnMinWidth
# |
string | number
|
undefined
|
Sets or gets the column's min width.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[columnMinWidth]="'100px'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
columnResize
# |
boolean
|
undefined
|
Determines whether the Table columns are resizable or not. When enabled it is possible to resize the columns from the header cells of the Table in both Task and Resource timelines.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[columnResize]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
columnResizeFeedback
# |
boolean
|
undefined
|
Determines resize feedback is used during column resizing. This property is applicable only when columnResize is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[columnResizeFeedback]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
currentTime
# |
string | Date
|
undefined
|
Gantt's current time. By default it is the today's date.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
currentTimeIndicator
# |
boolean
|
undefined
|
Enables/Disables the current time indicator. Current time indicator shows the current time in the appropriate view cells.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[currentTimeIndicator]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
currentTimeIndicatorInterval
# |
number
|
undefined
|
Determines the refresh interval in seconds for the currentTimeIndicator.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[currentTimeIndicatorInterval]="60"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
dataExportFileName
# |
string
|
undefined
|
Gantt export file name.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
source
# |
any
|
undefined
|
Determines the tasks that will be loaded inside the Timeline. Each item represents an object that should contain the following properties: - label - the label of the Task
- dateStart - the starting date of the Task. Should be a string representing a valid date.
- dateEnd - the ending date of the Task. Should be a string representing a valid date.
- type - determines the type of the task. Whether it's a simple task, a project or a milestone. Each type of task has specific behavior and additional attributes.
. Additional properties: - connections - an array of objects representing the connection between two tasks. Each connection (object) should have the following properties :
- target - a number representing the index of the target task
- type - a number representing the type of the connection. Four types of connections are available:
- 0 - is a connection of type Start-to-Start
- 1 - is a connection of type End-to-Start
- 2 - is a connection of type End-to-End
- 3 - is a connection of type Start-to-End
- lag - a number that determines the delay between two connected auto scheduled tasks. Lag property can be a positive or a negative number. When negative it determines the overlap between two connected tasks. This property is used in conjunction with autoSchedule.
- duration - determines the duration of a Task in days, hours, minutes, seconds or milliseconds. Very useful when the the dateEnd of a Task is unknown. The duration always shows the calendar time whether it is in days/hours or other.
- minDuration - sets the minimum duration of a task.
- maxDuration - sets the maximum duration of a task.
- minDateStart - determines the minimum date that a task can start from. Must be if type string and should represent a valid date.
- maxDateStart - determines the maximum date that a task can start from. Must be if type string and should represent a valid date.
- minDateEnd - determines the minimum date that a task can end. Must be if type string and should represent a valid date.
- maxDateEnd - determines the maximum date that a task can end. Must be if type string and should represent a valid date.
- progress - a number that determines the progress of a task ( from 0 to 100 ).
- overdue - a boolean that indicates whether the task's dateEnd has surpassed it's deadline date.
- disableDrag - a boolean property that disables the dragging of a task when set to true.
- disableResize - a boolean property that disables the resizing of a task when set to true.
- dragProject - a boolean that determines whether or not the whole project (along with the tasks) can be dragged while dragging the project task. Applicable only to Projects.
- segments - an array of objects that allows to divide a task into multiple segments. Each segment (except the first) can have a different starting date, duration and label.
- synchronized - a boolean that if set the project task's start/end dates are automatically calculated based on the tasks. By default a synchronized project task can't be dragged alone. Applicable only to Project tasks.
- expanded - a boolean that determines if a project is expanded or not. If not all of it's sub-tasks are not visible. Only the project task itself is visible. By default no projects are expanded. Applicable only to project tasks..
GanttChart also accepts a DataAdapter instance as dataSource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[source]="[
{
label: 'Task 3',
dateStart: '2025-02-02',
dateEnd: '2025-07-05',
progress: 50,
type: 'task'
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
dayFormat
# |
string
|
undefined
|
Determines the format of the dates in the timeline header when they represent days.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[dayFormat]="'short'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
dateEnd
# |
string | Date
|
undefined
|
Determines a specific end date for the Timeline. Useful when the user wants custom ending date for the Timeline. If no date is set the end date of the timeline is automatically determined from the tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[dateEnd]="'new Date(2050,0,1)'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
dateStart
# |
string | Date
|
undefined
|
Determines a specific starting date for the Timeline. Useful when the user wants custom starting date for the Timeline. If no date is set the start date of the timeline is automatically determined from the tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[dateStart]="'new Date(2050,0,1)'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
dateMarkers
# |
{label?: string, date: Date | string, className?: string }[]
|
undefined
|
Determines the date markers that will be displayed inside the timeline. Date markers allow to mark and even label specific dates (including time) inside the GanttChart timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disabled
# |
boolean
|
undefined
|
Enables or disables the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disabled]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableAutoScroll
# |
boolean
|
undefined
|
Disables auto scrolling while dragging/resizing a task bar inside the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableAutoScroll]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableTaskDrag
# |
boolean
|
undefined
|
Disables dragging of tasks in the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableTaskDrag]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableTaskProgressChange
# |
boolean
|
undefined
|
Disables task progress changing in the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableTaskProgressChange]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableTaskResize
# |
boolean
|
undefined
|
Disables resizing of tasks in the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableTaskResize]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableSelection
# |
boolean
|
undefined
|
Disables the selection inside the GanttChart.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableSelection]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableSegmentDrag
# |
boolean
|
undefined
|
Disables the task segment dragging.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableSegmentDrag]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableSegmentResize
# |
boolean
|
undefined
|
Disables the task segment resizing.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableSegmentResize]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
disableWindowEditor
# |
boolean
|
undefined
|
Disables the window editor for the GanttChart.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[disableWindowEditor]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
durationUnit
# |
string
|
undefined
|
Determines in what unit is task duration property measured.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[durationUnit]="'day'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
filterRow
# |
boolean
|
undefined
|
Determines whether a dedicated filter row is used for Table filtering instead of the default filter input. This property has no effect if filtering is not enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[filterRow]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
firstDayOfWeek
# |
number
|
undefined
|
Determines the view start day. Sunday is 0, Monday is 1, Saturday is 6. By default it's Sunday.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[firstDayOfWeek]="1"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
groupByResources
# |
boolean
|
undefined
|
Groups the tasks inside the Task timeline according to the resources they are assigned to. Unassigned tasks are placed in a default group labeled 'Unassigned'.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[groupByResources]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
Allows to create a custom header content for the Task Panel. The attribute accepts an HTMLTemplate element, it's id or a function.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[headerTemplate]="'template'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
hideDateMarkers
# |
boolean
|
undefined
|
Determines whether the dateMarkers are visible or not.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hideDateMarkers]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
By default the Timeline has a three level header - timeline details, timeline second details and timeline header. This property hides the header container( the bottom container ).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hideTimelineHeader]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
By default the Timeline has a three level header - timeline details, timeline second details and timeline header. This property hides the header details container( the top container ).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hideTimelineHeaderDetails]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
By default the Timeline has a three level header - timeline details and timeline header. This property hides the second header details container( the middle container ).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hideTimelineSecondHeaderDetails]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
hideResourcePanel
# |
boolean
|
undefined
|
Hides the Resource panel regardless of the resources availability By default the Resource panel is visible if resources are added to the GanttChart. This property allows to hide the Resource panel permanently.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hideResourcePanel]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
horizontalScrollBarVisibility
# |
string
|
undefined
|
Determines weather or not horizontal scrollbar is shown.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[horizontalScrollBarVisibility]="'hidden'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
hourFormat
# |
string
|
undefined
|
Determines the format of the dates inside the timeline header when they represent hours.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[hourFormat]="'numeric'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
infiniteTimeline
# |
boolean
|
undefined
|
When enabled, scrolling to the end of the horizontal timeline, triggers the creation of additional to extend the time range. The number of cells to be added when the scrollbar reaches the end position is determined by the infiniteTimelineStep.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
infiniteTimelineStep
# |
number
|
undefined
|
Determines the number of cells to be added when the horizontal scroll bar of the Timeline reaches it's end position when infiniteTimeline is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
inverted
# |
boolean
|
undefined
|
When set the Timeline is positioned on the left side while the Task Tree is positioned on the right. By default it's vice versa.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
keyboardNavigation
# |
boolean
|
undefined
|
Determines whether keyboard navigation inside the Table is enabled or not. Keyboard navigation affects both Task and Resource Tables. It allows to navigate between items. the following keyboard shortcut keys are available for focused tasks inside the Task Table: - Enter - opens the Window editor to edit the currently focused task.
- Delete - opens a confirmation window regarding the deletion of the currently focused task.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
max
# |
string | Date
|
undefined
|
Determines the maximum possible date of the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[max]="2024 - 12 - 29"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
min
# |
string | Date
|
undefined
|
Determines the minimum possible date of the Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[min]="2001 - 12 - 29"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
monthFormat
# |
string
|
undefined
|
Determines the format of the dates the timeline header when they represent months.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[monthFormat]="'numeric'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
monthScale
# |
string
|
undefined
|
Determines the scale in Month view.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[monthScale]="'week'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
nonworkingDays
# |
number[]
|
undefined
|
Determines the nonworking days of the week from 0 to 6, where 0 is the first day of the week and 6 is the last day. Nonworking days will be displayed with colored cells inside the timeline and will not affect the dateEnd of the tasks unless the adjustToNonworkingTime property is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[nonworkingDays]="[0, 1]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
nonworkingHours
# |
number[] | number[][]
|
undefined
|
Determines the nonworking hours of a day. Hours are represented as numbers inside an array (e.g. [1,2,3] - means 1,2 and 3 AM) or number ranges represented as nested arrays(e.g. [[0,6]] - means from 0 to 6 AM). In the timeline the cells that represent nonworking days are colored differently from the rest and will not affect the dateEnd of the tasks unless the adjustToNonworkingTime property is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[nonworkingDays]="[22, 23, [0, 6]]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
onTaskRender
# |
any
|
undefined
|
A function that can be used to completely customize the task element. The function has five arguments: - task - the task object.
- segment - the task current segment object. If the task has only one segment, the task object is passed again.
- taskElement - the task's html element.
- segmentElement - the task's segment html element.
- labelElement - the task's segment label html element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
A function that can be used to completely customize the popup Window that is used to interact width tasks by changing their properties. The function as three arguments: - target - the target popup Window that is about to be opened.
- type - the type of the window. The type determines the purpose of the window. Three possible values: 'task' (task editing), 'confirm' ( confirmation window), 'connection' (used when deleting a connection between tasks).
- item - the connection/task object that is the target of the window.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
Determines which Tab items are visible inside the popup window. Three possible values are allowed: - general - the general tab with task properties determines by the taskColumns property.
- dependency - the dependency tab which shows the connections to the task and allows to create/delete connections.
- segments - the segments tab which shows the segments of the task and allows to created/delete segments.
.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
progressLabelFormatFunction
# |
any
|
undefined
|
A format function for the Timeline task progress label. The expected result from the function is a string. The label is hidden by default can be shown with the showProgressLabel property.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
quarterFormat
# |
string
|
undefined
|
Determines the format of the dates the timeline header when they represent quarters.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[quarterFormat]="'long'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resources
# |
{label: string, capacity: number, value: string, workload: number, progress: number, id: string, class: string }[]
|
undefined
|
A getter that returns a flat structure as an array of all resources inside the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceColumns
# |
{label: string, value: string}[]
|
undefined
|
Determines the columns that will be visible in the Resource Tree. Each entry in the value of this property must be of type Object. It should contain the label and value keys. The value of label determines the column header label inside the Task Tree. The value of value determines the content of the cells in the column. By default, one column with all resource labels is visible. Additional properties: - formatFunction - a function that allows to customize the content of each record in the column. The function accepts two arguments - the actual label as string that is going to be inserted and the index of the resource. The function must return a string as the new content.
- min - controls the min size of the column
- max - controls the max size of the column
- size - controls the actual size of the column
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[resourceColumns]="{ label: 'Task Name', value: 'label' }"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceFiltering
# |
boolean
|
undefined
|
Determines whether the Resource Table is filterable or not.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[resourceFiltering]="true"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceGroupFormatFunction
# |
any
|
undefined
|
A format function that allows to re-format the group row labels when groupByResources is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
Allows to create a custom header content for the Resource Panel. The attribute accepts an HTMLTemplate element, it's id or a function.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourcePanelMin
# |
number | string
|
undefined
|
Determines the min size of the Resource Panel.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourcePanelSize
# |
number | string
|
undefined
|
Determines the size of the Resource Panel.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourcePanelRefreshRate
# |
number
|
undefined
|
Determines the refresh rate of the Resource Panel when dragging/resizing/progress changing a Task from the Timeline. This property allows to customize the interval between resource Tree/Timeline refreshes. By default they refresh immediately after a change.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceTimelineFormatFunction
# |
any
|
undefined
|
A callback that can be used to customize the content of the resource Timeline cells. The callback accepts three arguments: - taskIndexes - an array of task indexes that are assigned to the resource for the current cell.
- resourceIndex - the index of the resource.
- cellDate - the date of the current cell.
This property is used when resourceTimelineView is set to custom. Depending on the resourceTimelineMode, it should return: - string - when the resourceTimelineMode is set to 'diagram'.
- object - when the resourceTimelineMode is set to 'histogram'. The object should have two attributes: capacity and maxCapacity, in order to be visualized as a histogram.
. Another usage of this callback is to customize the timeline resource representation completely if resourceTimelineMode is set to custom.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceTimelineMode
# |
string
|
undefined
|
Determines how the capacity of the resources will be visualized inside the resource timeline. By default, the capacity is measured in hours depending on the view property of the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[resourceTimelineMode]="'diagram'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
resourceTimelineView
# |
string
|
undefined
|
Determines how the resources will be displayed inside the resource Timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
rtl
# |
boolean
|
undefined
|
Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
rightToLeft
# |
boolean
|
undefined
|
Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
selectedTaskIds
# |
number[] | string[]
|
undefined
|
Sets which tasks to select by their id or gets the currently selected task ids. If no id is provided for the task, an internal id is generated for each task according to it's index(tree path).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[selectedTaskIds]="['2']"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
selectedResourceIds
# |
number[] | string[]
|
undefined
|
Sets which resources to select by their id or gets the currently selected resource ids. If no id is provided for the resource, an internal id is generated for each resource according to it's index(tree path).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[selectedResourceIds]="['2']"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
shadeUntilCurrentTime
# |
boolean
|
undefined
|
Enables/Disables the current time shader. If enabled all cells that represent past time will be shaded.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
showSelectionColumn
# |
boolean
|
undefined
|
Shows the selection column of the Task/Resource Table. When applied a checkbox column is displayed that allows to select tasks/resources.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
showBaseline
# |
boolean
|
undefined
|
Determines whether the baselines of the tasks are visible or not. Baselines are defined via the 'planned' attribute on the task objects of the dataSource property.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
showProgressLabel
# |
boolean
|
undefined
|
Shows the progress label inside the progress bars of the Timeline tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
snapToNearest
# |
boolean
|
undefined
|
If set the dateStart/dateEnd of the tasks will be coerced to the nearest timeline cell date ( according to the view ). Affects the dragging operation as well.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
sortFunction
# |
{ (dataSource: any, sortColumns: string[], directions: string[], defaultCompareFunctions: { (firstRecord: any, secondRecord: any): number }[]): void }
|
undefined
|
Allows to set a custom sorting function to be executed when a column is sorted. Can be used to override the default sorting behavior. The function contains the following parameters: - dataSource - the Table's data source
- sortColumns - an array of the data fields of columns to be sorted by
- directions - an array of sort directions to be sorted by (corresponding to sortColumns)
- defaultCompareFunctions - an array of default compare functions to be sorted by (corresponding to sortColumns), useful if the sorting of some columns does not have to be overridden
.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
sortMode
# |
string
|
undefined
|
Determines whether the GanttChart can be sorted by one, more then one or no columns.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[sortMode]="'many'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
tasks
# |
{label: string, dateStart: string | Date, dateEnd: string | Date, expanded?: boolean, progress?: number, type?: string}[]
|
undefined
|
A getter that returns a flat structure as an array of all tasks inside the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
taskColumns
# |
{label: string, value: string}[]
|
undefined
|
Determines the columns that will be visible in the Task Tree. Each entry in the value of this property must be of type Object. It should contain the label and value keys. The value of label determines the column header label inside the Task Tree. The value of value determines the content of the cells in the column. It should reference a task attribute from the dataSource. By default, one column with all task labels is visible. Additional properties: - formatFunction - a function that allows to customize the content of each record in the column. The function accepts one argument - the actual label as string that is going to be inserted and must return some content.
- min - controls the min size of the column
- max - controls the max size of the column
- size - controls the actual size of the column
- customEditor - a callback that can be used to set a custom editor for the column when editing via the window. It accepts two arguments
- label - the label of the column
- value - the value of the column.
The callback must return the editor. - setCustomEditorValue - a callback that is used to set the value of the custom editor.
- getCustomEditorValue - a callback that is used to get the value of the custom editor.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[taskColumns]="[{ label: 'Task Name', value: 'label' }]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
taskFiltering
# |
boolean
|
undefined
|
Determines whether the Task Table is filterable or not.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
taskPanelMin
# |
string | number
|
undefined
|
Determines the min size of the Task Panel. Used when Resource Panel is visible.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
taskPanelSize
# |
string | number
|
undefined
|
Determines the size of the Task Panel. Used when Resource Panel is visible.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
timelineMin
# |
string | number
|
undefined
|
Determines the min width of the timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
treeMin
# |
string | number
|
undefined
|
Determines the min width of the task table.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
treeSize
# |
string | number
|
undefined
|
Determines the size(width) of the task table.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
A format function for the Header of the Timeline. The function provides the following arguments: - date - a Date object that represents the date for the current cell.
- type - a string that represents the type of date that the cell is showing, e.g. 'month', 'week', 'day', etc.
- isHeaderDetails - a boolean that indicates whether the current cell is part of the Header Details Container or not.
- value - a string that represents the default value for the cell provided by the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
tooltip
# |
object
|
undefined
|
Determines whether the tooltips are enabled or not. Tooltips are available for timeline tasks, resources, connections, indicators and segments.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
verticalScrollBarVisibility
# |
string
|
undefined
|
Determines weather or not vertical scrollbar is shown.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
view
# |
string
|
undefined
|
Determines the viewing date range of the timeline. Possible values: - day - The timeline show the hours of the day.
- week - the timeline shows the days of the week.
- month - the timeline shows the days of the month.
- year - the timeline shows the months of the year.
- resource - displays the current tasks by grouping them according to the resources they have assigned. The unassigned tasks will be placed in a separate group called 'Unassigned'.
The timeline has a header section that contains the labels of each cell according to the date inside them. The header is split in two sections in order to give a more detailed information of the dates.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
[view]="'day'"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
yearFormat
# |
string
|
undefined
|
Determines the format of the dates inside the timeline header when they represent years.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
weekFormat
# |
string
|
undefined
|
Determines the format of the dates inside the timeline header when they represent weeks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
theme
# |
string
|
undefined
|
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
}
|
|
|
|
beginUpdate
# |
Event
|
|
This event is triggered when a batch update was started after executing the beginUpdate method.
Code examples #
Bind to the beginUpdate event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onBeginUpdate)="onBeginUpdate($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onBeginUpdate(e: Event): void {
alert('do something...');
}
}
|
|
endUpdate
# |
Event
|
|
This event is triggered when a batch update was ended from after executing the endUpdate method.
Code examples #
Bind to the endUpdate event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onEndUpdate)="onEndUpdate($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onEndUpdate(e: Event): void {
alert('do something...');
}
}
|
|
connectionStart
# |
Event
|
|
This event is triggered when the user starts connecting one task to another. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the connectionStart event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onConnectionStart)="onConnectionStart($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onConnectionStart(e: Event): void {
alert('do something...');
}
}
|
|
connectionEnd
# |
Event
|
|
This event is triggered when the user completes a connection between two tasks.
Code examples #
Bind to the connectionEnd event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onConnectionEnd)="onConnectionEnd($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onConnectionEnd(e: Event): void {
alert('do something...');
}
}
|
|
change
# |
Event
|
|
This event is triggered when a Task is selected/unselected.
Code examples #
Bind to the change event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onChange)="onChange($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onChange(e: Event): void {
alert('do something...');
}
}
|
|
columnResize
# |
Event
|
|
This event is triggered when a Tree column is resized. Column resizing is controlled by the columnResize property.
Code examples #
Bind to the columnResize event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onColumnResize)="onColumnResize($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onColumnResize(e: Event): void {
alert('do something...');
}
}
|
|
closing
# |
Event
|
|
This event is triggered just before the window for task editing or tooltip is closing. The closing operation can be canceled by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the closing event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onClosing)="onClosing($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onClosing(e: Event): void {
alert('do something...');
}
}
|
|
close
# |
Event
|
|
This event is triggered when the window for task editing is closed( hidden )
Code examples #
Bind to the close event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onClose)="onClose($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onClose(e: Event): void {
alert('do something...');
}
}
|
|
collapse
# |
Event
|
|
This event is triggered when an item is collapsed.
Code examples #
Bind to the collapse event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onCollapse)="onCollapse($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onCollapse(e: Event): void {
alert('do something...');
}
}
|
|
dragStart
# |
Event
|
|
This event is triggered when dragging of a task starts. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the dragStart event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onDragStart)="onDragStart($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onDragStart(e: Event): void {
alert('do something...');
}
}
|
|
dragEnd
# |
Event
|
|
This event is triggered when dragging of a task finishes.
Code examples #
Bind to the dragEnd event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onDragEnd)="onDragEnd($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onDragEnd(e: Event): void {
alert('do something...');
}
}
|
|
expand
# |
Event
|
|
This event is triggered when an item is expanded.
Code examples #
Bind to the expand event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onExpand)="onExpand($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onExpand(e: Event): void {
alert('do something...');
}
}
|
|
filter
# |
Event
|
|
This event is triggered when the GanttChart is filtered.
Code examples #
Bind to the filter event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onFilter)="onFilter($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onFilter(e: Event): void {
alert('do something...');
}
}
|
|
itemClick
# |
Event
|
|
This event is triggered when a task, resource or connection is clicked inside the Timeline or the Tree columns.
Code examples #
Bind to the itemClick event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onItemClick)="onItemClick($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onItemClick(e: Event): void {
alert('do something...');
}
}
|
|
itemInsert
# |
Event
|
|
This event is triggered when a Task/Resource/Connection is inserted.
Code examples #
Bind to the itemInsert event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onItemInsert)="onItemInsert($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onItemInsert(e: Event): void {
alert('do something...');
}
}
|
|
itemRemove
# |
Event
|
|
This event is triggered when a Task/Resource/Connection is removed.
Code examples #
Bind to the itemRemove event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onItemRemove)="onItemRemove($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onItemRemove(e: Event): void {
alert('do something...');
}
}
|
|
itemUpdate
# |
Event
|
|
This event is triggered when a Task/Resource/Connection is updated.
Code examples #
Bind to the itemUpdate event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onItemUpdate)="onItemUpdate($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onItemUpdate(e: Event): void {
alert('do something...');
}
}
|
|
opening
# |
Event
|
|
This event is triggered just before the window for task editing or tooltip is opening. The opening operation can be canceled by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the opening event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onOpening)="onOpening($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onOpening(e: Event): void {
alert('do something...');
}
}
|
|
open
# |
Event
|
|
This event is triggered when the window for task editing is opened( visible ) or when the tooltip is opened.
Code examples #
Bind to the open event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onOpen)="onOpen($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onOpen(e: Event): void {
alert('do something...');
}
}
|
|
progressChangeStart
# |
Event
|
|
This event is triggered when the progress of a task bar starts to change as a result of user interaction. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the progressChangeStart event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onProgressChangeStart)="onProgressChangeStart($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onProgressChangeStart(e: Event): void {
alert('do something...');
}
}
|
|
progressChangeEnd
# |
Event
|
|
This event is triggered when the progress of a task is changed.
Code examples #
Bind to the progressChangeEnd event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onProgressChangeEnd)="onProgressChangeEnd($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onProgressChangeEnd(e: Event): void {
alert('do something...');
}
}
|
|
resizeStart
# |
Event
|
|
This event is triggered when resizing of a task starts. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
Code examples #
Bind to the resizeStart event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onResizeStart)="onResizeStart($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onResizeStart(e: Event): void {
alert('do something...');
}
}
|
|
resizeEnd
# |
Event
|
|
This event is triggered when the resizing of a task finishes.
Code examples #
Bind to the resizeEnd event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onResizeEnd)="onResizeEnd($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onResizeEnd(e: Event): void {
alert('do something...');
}
}
|
|
sort
# |
Event
|
|
This event is triggered when the GanttChart is sorted by some column.
Code examples #
Bind to the sort event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onSort)="onSort($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onSort(e: Event): void {
alert('do something...');
}
}
|
|
scrollBottomReached
# |
Event
|
|
This event is triggered when the Timeline has been scrolled to the bottom.
Code examples #
Bind to the scrollBottomReached event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onScrollBottomReached)="onScrollBottomReached($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onScrollBottomReached(e: Event): void {
alert('do something...');
}
}
|
|
scrollTopReached
# |
Event
|
|
This event is triggered when the Timeline has been scrolled to the top.
Code examples #
Bind to the scrollTopReached event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onScrollTopReached)="onScrollTopReached($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onScrollTopReached(e: Event): void {
alert('do something...');
}
}
|
|
scrollLeftReached
# |
Event
|
|
This event is triggered when the Timeline has been scrolled to the beginning (horizontally).
Code examples #
Bind to the scrollLeftReached event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onScrollLeftReached)="onScrollLeftReached($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onScrollLeftReached(e: Event): void {
alert('do something...');
}
}
|
|
scrollRightReached
# |
Event
|
|
This event is triggered when the Timeline has been scrolled to the end (horizontally).
Code examples #
Bind to the scrollRightReached event of jqxGantt.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
(onScrollRightReached)="onScrollRightReached($event)"
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public onScrollRightReached(e: Event): void {
alert('do something...');
}
}
|
|
ganttaiResult
# |
Event
|
|
This event is triggered when an AI method completes: aiCommand, aiAddTask, aiAsk, aiSummarize, aiExplainTask or aiClassifyTasks. Unlike the other Gantt events, its data is not in event.args: it is the handler's second argument, { type, result }, where type is 'command', 'addTask', 'ask', 'summary', 'explain' or 'classify' and result is the object the method's Promise resolves to. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').on('ganttaiResult', function (event, data) {
console.log(data.type, data.result);
});
|
|
ganttaiError
# |
Event
|
|
This event is triggered when an AI request fails: the AI is not configured, the provider (or your aiSendRequest) returns an error, or the network fails. Its data is the handler's second argument, { error, message }: the Error and its message. The method's Promise rejects with the same error and its callback is called with it. A reply the Gantt cannot use (aiAddTask without a label, for example) only rejects the Promise, without this event. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').on('ganttaiError', function (event, data) {
console.log(data.message);
});
|
|
|
| Name | Arguments | Return Type |
|
addFilter
# |
columns, filterGroup
|
|
Adds a custom filter to a specific column (task or resource column).
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
const filterGroup = new (window as any).JQX.Utilities.FilterGroup();
filterGroup.addFilter(
'or',
filterGroup.createFilter('string', 'Task 1', 'STARTS_WITH_CASE_SENSITIVE')
);
this.myGantt().addFilter({ type: 'task', value: 'label' }, filterGroup);
}
}
|
|
aiConfig
# |
options
|
|
Sets AI settings at run time. They take precedence over the ai* properties, and each call merges into the settings of the earlier ones. The keys are provider, apiKey, model, proxyUrl, headers, sendRequest and maxRows (as the properties aiProvider, aiKey, aiModel, aiProxyUrl, aiHeaders, aiSendRequest and aiMaxRows), and maxTokens, the reply length limit sent to the provider (1024 by default), which has no property. Returns the settings made with aiConfig so far (not the ai* properties). Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiConfig', { proxyUrl: '/api/ai', maxTokens: 2048 });
|
|
aiCommand
# |
text, callback
|
|
Turns a plain-language request into changes to the plan and applies them in one beginUpdate/endUpdate batch: new start and end dates and progress (with updateTask), and new connections (with createConnection, types 0-3). The model is shown the first aiMaxRows tasks and answers with a JSON plan that names tasks by id or exact label. A name that does not match exactly one task is skipped, dates that do not parse and an end before the start are dropped, and progress is kept within 0-100. Returns a Promise that resolves to { spec, applied, query }: the plan the model returned, a list of the changes made (and of the ones skipped), and the request. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiCommand', 'Move Design to end on March 20 and link it to Build').then(function (result) {
console.log(result.applied);
});
|
|
aiAddTask
# |
text, callback
|
|
Adds a task described in plain language. The model answers with the task's label, type ('task', 'project' or 'milestone'), dates, progress, parent and resources: the label is required, the parent must be an existing project task (by id or exact label), and only known resources are kept. The task is added with insertTask. Returns a Promise that resolves to { task, query }. It rejects, without a ganttaiError event, when the reply has no label or names a parent that is not a project. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiAddTask', 'Add a three-day code review to the Website project, starting March 23').then(function (result) {
console.log(result.task.label);
});
|
|
aiAsk
# |
text, callback
|
|
Answers a plain-language question about the plan. The model is shown the first aiMaxRows tasks (dates, progress) and totals over all the tasks and milestones: their number, average progress, how many are overdue, and the date range. Returns a Promise that resolves to { answer, query }. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiAsk', 'Which tasks are overdue?').then(function (result) {
console.log(result.answer);
});
|
|
aiSummarize
# |
callback
|
|
Sums up the health of the plan in a few sentences: progress, timeline and overdue tasks. The model is shown only the totals over all the tasks and milestones, not the task list. Returns a Promise that resolves to { summary, count }, where count is the number of tasks and milestones (projects are not counted). Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiSummarize').then(function (result) {
console.log(result.summary);
});
|
|
aiExplainTask
# |
ref, callback
|
|
Explains one task in a few sentences: its schedule, its progress and the tasks connected to it. The model is shown the task, its connections and the totals of the plan. Returns a Promise that resolves to { ref, explanation }. It rejects with "Task ... not found.", without a request, when ref matches no single task. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiExplainTask', 'Design').then(function (result) {
console.log(result.explanation);
});
|
|
aiClassifyTasks
# |
options, callback
|
|
Labels tasks with the model and stores each label in a field of your choice. The first aiMaxRows tasks that are not projects are labelled. A label is written to the task with updateTask, or kept by the Gantt when the task does not take the field; aiGetCustomField reads it either way. Returns a Promise that resolves to { datafield, written }, where written is the number of tasks labelled. It rejects, without a request, when datafield is missing or is a built-in task field. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
$('#myGantt').jqxGantt('aiClassifyTasks', {
datafield: 'risk',
instruction: 'Rate the schedule risk of each task.',
categories: ['High', 'Medium', 'Low']
}).then(function (result) {
console.log(result.written + ' tasks labelled');
});
|
|
aiGetCustomField
# |
ref, field
|
|
Returns the value aiClassifyTasks wrote to a task's field, whether it is stored on the task or kept by the Gantt, or undefined. Part of the jqxgantt.ai.js module.
React, Angular and Vue (27.1.0): the jqxGantt components of jqwidgets-scripts and jqwidgets-ng do not load the Gantt AI module (jqxgantt.ai.js), and their typings have no AI members, so this member is not available through the component. It is available in plain JavaScript, with jQuery, jqxcore.js, jqxgantt.js, jqxgantt.api.js, jqxwidgets.ai.js and jqxgantt.ai.js loaded in this order (or with const gantt = new jqxGantt('#gantt', options) and gantt.aiAsk(...)):
const risk = $('#myGantt').jqxGantt('aiGetCustomField', 'Design', 'risk');
|
|
clearFilters
# |
None
|
|
Clears the currently applied filters.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearFilters();
}
}
|
|
clearSort
# |
None
|
|
Clears the currently applied column sorting.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearSort();
}
}
|
|
clearSelection
# |
None
|
|
Unselects all currently selected items inside the GanttChart including Tasks and Resources. It also clears the assignment highlighters.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearSelection();
}
}
|
|
clearState
# |
None
|
|
Removes a previously saved state of the element form LocalStorage according to it's id. Requires an id to be set to the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearState();
}
}
|
|
clearTasks
# |
None
|
|
Removes all tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearTasks();
}
}
|
|
clearResources
# |
None
|
|
Removes all resources.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().clearResources();
}
}
|
|
createConnection
# |
startTaskIndex, taskEndIndex, connectionType, lag
|
|
Creates a connection between two tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().createConnection(1, 2, 0);
}
}
|
|
collapse
# |
id
|
|
Collapses an expanded project.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().collapse(1);
}
}
|
|
beginUpdate
# |
|
|
Starts an update operation. This is appropriate when calling multiple methods or set multiple properties at once.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().beginUpdate();
}
}
|
|
endUpdate
# |
|
|
Ends the update operation. This method will resume the rendering and will refresh the GanttChart.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().endUpdate();
}
}
|
|
ensureVisible
# |
taskId
|
|
Makes sure a Task is visible by scrolling to it.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().ensureVisible(0);
}
}
|
|
expand
# |
id
|
|
Expands a collapsed project with tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().expand(0);
}
}
|
|
exportData
# |
dataFormat, callback
|
|
Exports the data of Tree of the GanttChart.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().exportData('pdf');
}
}
|
|
getConnections
# |
None
|
|
Returns all existing connections. The connections are returned as objects that contain detailed information. Each object in the array has the following keys: 'id' - connection id, 'type' - connection type, 'startTaskId' - connection's start task id, 'endTaskId' - connection's end task id, 'startIndex' - connection's start task index, 'endIndex' - connection's end task index, 'lag' - lag time.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getConnections();
}
}
|
|
getConnectionDetails
# |
connectionId
|
|
Returns the connection details for the target connection which includes: startTask, endTask, startTaskId, endTaskId and type of the corresponding connection. Connection types are described in detail under the `connectionEnd` event description in this document and in a dedicated topic available on the website.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getConnectionDetails('0-3-0');
}
}
|
|
getState
# |
None
|
|
Returns a JSON representation of all tasks inside the element along with their connections and settings.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getState();
}
}
|
|
getItemPath
# |
item
|
|
Returns the Tree path of a task/resource. The tree path is used as task/resource id if no id is provided by the user.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getItemPath(this.myGantt().getTasks()[0]);
}
}
|
|
getTask
# |
itemId
|
|
Returns the task object that corresponds to the id/path.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getTask(0.4);
}
}
|
|
getTasks
# |
None
|
|
Returns an array of all GanttChart tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getTasks();
}
}
|
|
getTaskIndex
# |
task
|
|
Returns the index of a task.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getTaskIndex(this.myGantt().getTasks()[0]);
}
}
|
|
getTaskConnections
# |
taskId
|
|
Returns the connections definitions of a task.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getTaskConnections(0);
}
}
|
|
getTaskProject
# |
task
|
|
Returns the Project of a task or undefined if it does not have one.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getTaskProject(this.myGantt().getTasks()[1]);
}
}
|
|
getResource
# |
itemId
|
|
Returns the resource object that corresponds to the id/path.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getResource(4);
}
}
|
|
getResources
# |
None
|
|
Returns an array of all GanttChart resources.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getResources();
}
}
|
|
getResourceIndex
# |
resource
|
|
Returns the index of a resource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getResourceIndex(this.myGantt().getResources()[0]);
}
}
|
|
getResourceTasks
# |
resource
|
|
Returns the tasks that are assigned to the resource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getResourceTasks(this.myGantt().getResources()[0]);
}
}
|
|
getSelectedIds
# |
None
|
|
Returns the currently selected tasks/resource ids. If selection is disabled or no items are selected returns null.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getSelectedIds();
}
}
|
|
getSelectedTasks
# |
None
|
|
Returns the currently selected tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getSelectedTasks();
}
}
|
|
getSelectedResources
# |
None
|
|
Returns the currently selected resources.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getSelectedResources();
}
}
|
|
getWorkingHours
# |
None
|
|
Returns the working hours of the day as numbers.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().getWorkingHours();
}
}
|
|
hideTooltip
# |
None
|
|
Hides the tooltip if it's visible.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().hideTooltip();
}
}
|
|
isWorkingDay
# |
date
|
|
Depending on the nonworkingDays property, returns true or false whether the target date is on a working day or not.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().isWorkingDay(new Date(2026, 1, 7));
}
}
|
|
loadState
# |
state
|
|
Loads a previously saved state of the element or checks LocalStorage for any saved states if no argument is passed to the method.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().loadState();
}
}
|
|
removeAllConnections
# |
None
|
|
Removes all connections between tasks.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().removeAllConnections();
}
}
|
|
removeConnection
# |
startTaskIndex, taskEndIndex, connectionType
|
|
Removes a connection between tasks. The function accepts three arguments(task's start index, end index and connection type) or one connection string argument which describes the connection.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().removeConnection(0, 4, 1);
}
}
|
|
removeTaskConnection
# |
taskStart, taskEnd
|
|
Removes all connections of a task or between two tasks if the second argument is provided and valid.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().removeTaskConnection(10, 4);
}
}
|
|
showTooltip
# |
target, content
|
|
Shows the tooltip for a specific element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().showTooltip(this.myGantt().elementRef.nativeElement, 'Tooltip');
}
}
|
|
saveState
# |
state
|
|
Saves the current settings of the element to LocalStorage. Requires an id to be set to the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().saveState();
}
}
|
|
insertTask
# |
taskObject, project, index
|
|
Inserts a new task in the timeline. The new task can be inserted as a sub task of a project by passing the appropriate argument for the project id or as a root level item.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().insertTask(
{ label: 'Inserted Task 1', dateStart: '2025-08-07', dateEnd: '2025-12-20' },
'0.1',
1
);
}
}
|
|
updateTask
# |
taskId, taskObject
|
|
Updates a task/project/milestone.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().updateTask('2', { label: 'Updated Task', dateEnd: '2025-12-20' });
}
}
|
|
removeTask
# |
taskId
|
|
Removes a task from the timeline.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().removeTask(0);
}
}
|
|
insertResource
# |
resourceId, resourceObject
|
|
Inserts a new resource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().insertResource(0, { id: 'newResource', label: 'New Resource', capacity: 4 });
}
}
|
|
updateResource
# |
resourceId, taskObject
|
|
Updates an existing resource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().updateResource(2, { label: 'Updated Task', capacity: 6 });
}
}
|
|
removeResource
# |
resourceId
|
|
Removes a resource.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().removeResource(0);
}
}
|
|
openWindow
# |
taskId
|
|
Opens the popup Window for specific task to edit or to delete a connection if a connection string is passed.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().openWindow(0);
}
}
|
|
closeWindow
# |
None
|
|
Closes an opened popup Window. The method will close any opened popup window inside the element.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().closeWindow();
}
}
|
|
print
# |
None
|
|
Prepares the GanttChart for printing by opening the browser's Print Preview.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().print();
}
}
|
|
setWorkTime
# |
settings
|
|
Allows to sets the working days and hours at once.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().setWorkTime({ days: [[1, 3]], hours: ['0:00-7:00'] });
}
}
|
|
selectTask
# |
id
|
|
Allows to select a task based on it's id.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().selectTask(1);
}
}
|
|
selectResource
# |
id
|
|
Allows to select a resource based on it's id.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().selectResource(1);
}
}
|
|
unselectTask
# |
id
|
|
Allows to unselect a task based on it's id.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().unselectTask(1);
}
}
|
|
unselectResource
# |
id
|
|
Allows to unselect a resource based on it's id.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().unselectResource(1);
}
}
|
|
unsetWorkTime
# |
settings
|
|
Allows to unset previously set working time. The opposite method for setWorkingTime.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().unsetWorkTime({ days: ['1-3'] });
}
}
|
|
sort
# |
columns
|
|
Sorts the GanttChart tasks/resources if sortable is enabled.
import { Component, viewChild } from '@angular/core';
import { jqxGanttComponent, jqxGanttModule } from 'jqwidgets-ng/jqxgantt';
@Component({
selector: 'app-root',
imports: [jqxGanttModule],
template: `<jqxGantt
#myGantt
[width]="600"
[height]="450"
[dataSource]="[
{
label: 'Project 1',
dateStart: '2025-05-07',
dateEnd: '2026-06-08',
type: 'project',
expanded: true,
tasks: [
{
label: 'Task 1.1',
dateStart: '2025-02-07',
dateEnd: '2025-04-07',
type: 'task'
},
{
label: 'Task 1.2',
dateStart: '2025-03-24',
dateEnd: '2025-06-07',
type: 'task'
}
]
}
]"
>
</jqxGantt>`,
styles: [``]
})
export class App {
readonly myGantt = viewChild.required<jqxGanttComponent>('myGantt');
public ngAfterViewInit(): void {
this.myGantt().sort([{ value: 'label', sortOrder: 'asc', type: 'task' }]);
}
}
|