JavaScript/jQuery Gantt - resourceAssignments
Type:
Default Value: null
Resource assignments define relationship between tasks and resources.
Use the dataSource property to bind the UI component to a data source, which contains resource assignments. If the field names in your data source differ from the 'id', 'resourceId' and 'taskId' default names, use the keyExpr, resourceIdExpr and/or taskIdExpr properties to map data fields.
See Also
index.js
data.js
- $(function() {
- $("#gantt").dxGantt({
- resourceAssignments: {
- dataSource: resourceAssignments,
- keyExpr: "key",
- resourceIdExpr: "resourceKey",
- taskIdExpr: "taskKey"
- },
- //...
- });
- });
- var resourceAssignments = [{
- 'key': 0,
- 'taskKey': 3,
- 'resourceKey': 1
- },
- // ...
- ];
dataSource
Default Value: null
Refer to the resourceAssignments property to see how to specify the dataSource property.
resourceIdExpr
Refer to the resourceAssignments property to see how to specify the resourceIdExpr property.
Feedback