{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-timeline-grouping",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "timeline-grouping",
  "dependencies": [
    "@syncfusion/ej2-schedule"
  ],
  "description": "Scheduler sample grouping resources in a timeline view with filtered appointments.",
  "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/scheduler-timeline-grouping.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-timeline-grouping/scheduler.html",
      "content": "<div class=\"col-lg-12 control-section\">\n    <div class=\"content-wrapper\">\n        <div id=\"container\"></div>\n    </div>\n</div>\n\n<style>\n    .e-schedule:not(.e-device) .e-agenda-view .e-content-wrap table td:first-child {\n        width: 90px;\n    }\n\n    .e-schedule .e-agenda-view .e-resource-column {\n        width: 100px;\n    }\n</style>"
    },
    {
      "target": "src/components/scheduler-timeline-grouping/scheduler.ts",
      "content": "import { Schedule, type ScheduleModel, TimelineViews, TimelineMonth, Agenda, Resize, DragAndDrop } from '@syncfusion/ej2-schedule';\nimport { extend } from '@syncfusion/ej2-base';\nimport { resourceData, timelineResourceData } from '../datasource/scheduler-data';\n/**\n * schedule resources group sample\n */\nSchedule.Inject(TimelineViews, TimelineMonth, Agenda, Resize, DragAndDrop);\n\nexport function initSchedulerTimelineGrouping(): void {\n    let scheduleOptions: ScheduleModel = {\n        width: '100%',\n        height: '650px',\n        selectedDate: new Date(2023, 0, 4),\n        views: ['TimelineDay', 'TimelineWeek', 'TimelineWorkWeek', 'TimelineMonth', 'Agenda'],\n        currentView: 'TimelineWeek',\n        workDays: [0, 1, 2, 3, 4, 5],\n        group: {\n            resources: ['Projects', 'Categories']\n        },\n        resources: [\n            {\n                field: 'ProjectId', title: 'Choose Project', name: 'Projects',\n                dataSource: [\n                    { text: 'PROJECT 1', id: 1, color: '#cb6bb2' },\n                    { text: 'PROJECT 2', id: 2, color: '#56ca85' },\n                    { text: 'PROJECT 3', id: 3, color: '#df5286' }\n                ],\n                textField: 'text', idField: 'id', colorField: 'color'\n            }, {\n                field: 'TaskId', title: 'Category',\n                name: 'Categories', allowMultiple: true,\n                dataSource: [\n                    { text: 'Nancy', id: 1, groupId: 1, color: '#df5286' },\n                    { text: 'Steven', id: 2, groupId: 1, color: '#7fa900' },\n                    { text: 'Robert', id: 3, groupId: 2, color: '#ea7a57' },\n                    { text: 'Smith', id: 4, groupId: 2, color: '#5978ee' },\n                    { text: 'Micheal', id: 5, groupId: 3, color: '#df5286' },\n                    { text: 'Root', id: 6, groupId: 3, color: '#00bdae' }\n                ],\n                textField: 'text', idField: 'id', groupIDField: 'groupId', colorField: 'color'\n            }\n        ],\n        eventSettings: {\n            dataSource: <Object[]>extend([], resourceData.concat(timelineResourceData), null, true)\n        }\n    };\n\n    let scheduleObj: Schedule = new Schedule(scheduleOptions);\n    scheduleObj.appendTo('#container');\n}\n"
    }
  ]
}