{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-recurring-events",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "recurring-events",
  "dependencies": [
    "@syncfusion/ej2-schedule"
  ],
  "description": "Scheduler sample creating, editing, and managing recurring event patterns.",
  "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-recurring-events.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-recurring-events/scheduler.html",
      "content": "<div class=\"col-lg-9 control-section\">\n    <div class=\"content-wrapper\">\n        <div id=\"container\">\n        </div>\n    </div>\n</div>\n<div class=\"col-lg-3 property-section\">\n    <table id=\"property\" title=\"Properties\" style=\"width: 100%\">\n        <tbody>\n            <tr style=\"height: 50px\">\n                <td style=\"width: 100%\">\n                    <input id=\"editFollowingEvents\"type=\"checkbox\" />\n                </td>\n            </tr>\n        </tbody>\n    </table>\n</div>\n"
    },
    {
      "target": "src/components/scheduler-recurring-events/scheduler.ts",
      "content": "import { Schedule, Day, Week, Month, type EventRenderedArgs, Resize, DragAndDrop } from '@syncfusion/ej2-schedule';\nimport { extend } from '@syncfusion/ej2-base';\nimport { type ChangeEventArgs, CheckBox } from '@syncfusion/ej2-buttons';\nimport { recurrenceData } from '../datasource/scheduler-data';\n\nSchedule.Inject(Day, Week, Month, Resize, DragAndDrop);\n\n/**\n * Schedule Recurrence events sample\n */\n\nexport function initSchedulerRecurringEvents(): void {\n    let data: Object[] = <Object[]>extend([], recurrenceData, null, true);\n    let scheduleObj: Schedule = new Schedule({\n        width: '100%',\n        height: '650px',\n        selectedDate: new Date(2021, 1, 20),\n        views: ['Day', 'Week', 'Month'],\n        eventSettings: { dataSource: data },\n        eventRendered: (args: EventRenderedArgs) => applyCategoryColor(args, scheduleObj.currentView)\n    });\n    scheduleObj.appendTo('#container');\n    let checkBoxObj: CheckBox = new CheckBox({\n        label: 'Enable Following Events',\n        checked: false,\n        change: (args: ChangeEventArgs) => {\n            scheduleObj.eventSettings.editFollowingEvents = args.checked;\n        }\n    });\n    checkBoxObj.appendTo('#editFollowingEvents');\n    function applyCategoryColor(args: EventRenderedArgs, currentView: string): void {\n        let categoryColor: string = args.data.CategoryColor as string;\n        if (!args.element || !categoryColor) {\n            return;\n        }\n        if (currentView === 'Agenda') {\n            (args.element.firstChild as HTMLElement).style.borderLeftColor = categoryColor;\n        } else {\n            args.element.style.backgroundColor = categoryColor;\n        }\n    }\n}\n"
    }
  ]
}