{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-resource-view",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "resource-view",
  "dependencies": [
    "@syncfusion/ej2-gantt"
  ],
  "description": "Gantt chart sample grouping tasks by resource with assignment and planning views.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/gantt-resource-view.md"
  },
  "files": [
    {
      "target": "src/components/gantt-resource-view/gantt.html",
      "content": "<div class=\"control-section\">\n    <div class=\"content-wrapper\">\n        <div id=\"container\">\n        </div>\n    </div>\n</div>"
    },
    {
      "target": "src/components/gantt-resource-view/gantt.ts",
      "content": "import { Gantt, Selection, DayMarkers, Toolbar, Edit, Resize } from '@syncfusion/ej2-gantt';\nimport type { ClickEventArgs } from '@syncfusion/ej2-navigations';\nimport { resourcesData, resourceCollection } from '../datasource/gantt-data';\n/**\n *  Resource view Gantt sample\n */\n\nGantt.Inject(Selection, DayMarkers, Toolbar, Edit, Resize);\n\nexport function initResourceViewGantt(): void {\n    let gantt: Gantt = new Gantt(\n        {\n            dataSource: resourcesData,\n            resources: resourceCollection,\n            viewType: 'ResourceView',\n            showOverAllocation: true,\n            taskFields: {\n                id: 'TaskID',\n                name: 'TaskName',\n                startDate: 'StartDate',\n                endDate: 'EndDate',\n                duration: 'Duration',\n                progress: 'Progress',\n                dependency: 'Predecessor',\n                resourceInfo: 'resources',\n                work: 'work',\n                child: 'subtasks'\n            },\n            taskType:'FixedWork',\n            resourceFields: {\n                id: 'resourceId',\n                name: 'resourceName',\n                unit: 'resourceUnit',\n                group: 'resourceGroup'\n            },\n            editSettings: {\n                allowAdding: true,\n                allowEditing: true,\n                allowDeleting: true,\n                allowTaskbarEditing: true,\n                showDeleteConfirmDialog: true\n            },\n            columns: [\n                { field: 'TaskID', visible: false },\n                { field: 'TaskName', headerText: 'Name', width: 280 },\n                { field: 'work', headerText: 'Work' },\n                { field: 'Progress' },\n                { field: 'resourceGroup', headerText: 'Group' },\n                { field: 'StartDate' },\n                { field: 'Duration' }\n            ],\n            toolbar: ['Add', 'Edit', 'Update', 'Delete', 'Cancel', 'ExpandAll', 'CollapseAll',\n            { text: 'Show/Hide Overallocation', tooltipText: 'Show/Hide Overallocation', id: 'showhidebar' }],\n            toolbarClick: (args: ClickEventArgs) => {\n                if (args.item.id === 'showhidebar') {\n                    gantt.showOverAllocation = gantt.showOverAllocation ? false : true;\n                }\n            },\n            labelSettings: {\n                rightLabel: 'resources',\n                taskLabel: 'Progress'\n            },\n            splitterSettings: {\n                columnIndex: 3\n            },\n            allowResizing: true,\n            allowSelection: true,\n            highlightWeekends: true,\n            treeColumnIndex: 1,\n            height: '650px',\n            rowHeight: 46,\n            taskbarHeight: 25,\n            projectStartDate: new Date('03/26/2025'),\n            projectEndDate: new Date('05/18/2025')\n        });\n    gantt.appendTo('#container');\n}\n"
    }
  ]
}