{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-holidays",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "holidays",
  "dependencies": [
    "Syncfusion.AspNetCore.Gantt"
  ],
  "description": "Gantt chart displaying configured holidays alongside tasks and working time settings.",
  "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/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/gantt-holidays.md"
  },
  "files": [
    {
      "target": "src/components/gantt-holidays/gantt.cshtml",
      "content": "@page\n@namespace aspnet_core.Gantt.Holidays\n@model EJ2CoreSampleBrowser.Gantt.Holidays.HolidaysModel\n@using Syncfusion.EJ2\n\n    <div class=\"control-section\">\n        <div class=\"row\">\n            <div class=\"col-md-12\">\n                <ejs-gantt id='Holidays' dataSource=\"@Model.DataSource\" height=\"420px\" rowHeight=\"46\"\n                    taskbarHeight=\"25\" treeColumnIndex=\"1\" highlightWeekends=\"false\"\n                    renderBaseline=\"false\" includeWeekend=\"false\"\n                    projectStartDate=\"2025-04-01\" projectEndDate=\"2025-08-31\">\n                    <e-gantt-taskfields id=\"TaskId\" name=\"TaskName\" startDate=\"StartDate\" endDate=\"EndDate\" duration=\"Duration\" progress=\"Progress\" parentID=\"ParentID\"></e-gantt-taskfields>\n                    <e-gantt-holidays>\n                        @foreach (var h in Model.Holidays)\n                        {\n                            <e-gantt-holiday from=\"@h.From\" to=\"@h.To\" label=\"@h.Label\"></e-gantt-holiday>\n                        }\n                    </e-gantt-holidays>\n                    <e-gantt-columns>\n                        <e-gantt-column field=\"TaskId\" width=\"80\"></e-gantt-column>\n                        <e-gantt-column field=\"TaskName\" headerText=\"Task\" width=\"250\" clipMode=\"EllipsisWithTooltip\"></e-gantt-column>\n                        <e-gantt-column field=\"StartDate\"></e-gantt-column>\n                        <e-gantt-column field=\"Duration\"></e-gantt-column>\n                        <e-gantt-column field=\"Progress\"></e-gantt-column>\n                    </e-gantt-columns>\n                    <e-gantt-splittersettings columnIndex=\"2\"></e-gantt-splittersettings>\n                    <e-gantt-labelSettings leftLabel=\"TaskName\"></e-gantt-labelSettings>\n                </ejs-gantt>\n            </div>\n        </div>\n    </div>\n"
    },
    {
      "target": "src/components/gantt-holidays/gantt.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Gantt.Holidays\n{\n    public class HolidaysModel : PageModel\n    {\n        public List<HolidayRange> Holidays { get; set; }\n        public List<HolidayTask> DataSource { get; set; }\n\n        public void OnGet()\n        {\n            DataSource = new List<HolidayTask>\n            {\n                new HolidayTask { TaskId = 1, TaskName = \"Onboarding sprint\", StartDate = new DateTime(2025, 4, 7),  EndDate = new DateTime(2025, 4, 18), Duration = 10, Progress = 100 },\n                new HolidayTask { TaskId = 2, TaskName = \"Feature build\",     StartDate = new DateTime(2025, 4, 21), EndDate = new DateTime(2025, 5, 16), Duration = 20, Progress = 60 },\n                new HolidayTask { TaskId = 3, TaskName = \"Stabilization\",    StartDate = new DateTime(2025, 5, 19), EndDate = new DateTime(2025, 6, 6),  Duration = 15, Progress = 10 },\n            };\n            Holidays = new List<HolidayRange>\n            {\n                new HolidayRange { From = new DateTime(2025, 5, 1),  To = new DateTime(2025, 5, 1),  Label = \"Labour Day\" },\n                new HolidayRange { From = new DateTime(2025, 5, 26), To = new DateTime(2025, 5, 30), Label = \"Team Offsite\" },\n            };\n        }\n    }\n\n    public class HolidayRange\n    {\n        public DateTime From { get; set; }\n        public DateTime To { get; set; }\n        public string Label { get; set; }\n    }\n\n    public class HolidayTask\n    {\n        public int TaskId { get; set; }\n        public string TaskName { get; set; }\n        public DateTime StartDate { get; set; }\n        public DateTime EndDate { get; set; }\n        public int Duration { get; set; }\n        public int Progress { get; set; }\n    }\n}\n"
    }
  ]
}