{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-comment",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "comment",
  "dependencies": [
    "@syncfusion/ej2-spreadsheet"
  ],
  "description": "Spreadsheet editor showcasing threaded comments using shipment data with remarks and replies.",
  "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": true,
    "platformIndex": "https://ai.syncfusion.com/javascript/llms.txt",
    "skillPack": "syncfusion/javascript-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/javascript/spreadsheet-editor-comment.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-comment/spreadsheet-editor.html",
      "content": "<div class=\"control-section\">\n    <div id=\"spreadsheet\"></div>\n</div>\n<!-- custom code start -->\n<style>\n    .control-section .control-wrapper {\n        height: calc(100vh - 230px);\n        min-height: 550px\n    }\n\n    #sb-content .e-spreadsheet .e-tab .e-tab-text {\n        display: inherit;\n    }\n\n    .ej2-new .control-section {\n        height: 550px;\n    }\n\n    .e-spreadsheet .e-main-panel .e-main-content {\n        margin-left: 0 !important;\n    }\n</style>\n<!-- custom code end -->"
    },
    {
      "target": "src/components/spreadsheet-editor-comment/spreadsheet-editor.ts",
      "content": "import { Spreadsheet } from '@syncfusion/ej2-spreadsheet';\nimport { shipmentDetails } from '../datasource/spreadsheet-editor-data';\n\n/**\n * Comments sample\n */\nexport function initSpreadsheetEditorComment(): void {\n    const spreadsheet: Spreadsheet = new Spreadsheet({\n        // To show the comments review pane on initial rendering.\n        showCommentsPane: true,\n        openUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open',\n        saveUrl: 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save',\n        // Added comments using the data binding\n        sheets: [{\n            name: 'Shipment Details',\n            ranges: [{ dataSource: shipmentDetails }],\n            columns: [{ width: 80 }, { width: 130 }, { width: 150 }, { width: 100 }, { width: 100 }],\n            rows: [{\n                index: 1, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Confirm delivery status for Order 10248.', createdTime: 'November 18, 2025 at 3:00 PM',\n                        isResolved: true, replies: [{ author: 'Cristi Espinos', text: 'Status verified as delivered.', createdTime: 'November 18, 2025 at 3:30 PM' },\n                        { author: 'Julius Gorner', text: 'Acknowledged, thank you.', createdTime: 'November 18, 2025 at 3:45 PM' }]\n                    }\n                }]\n            },\n            {\n                index: 3, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Order 10250 is marked as Shipped, any update on current status?', createdTime: 'November 16, 2025 at 9:00 PM',\n                        isResolved: false, replies: [{ author: 'Cristi Espinos', text: 'Shipment is in transit.', createdTime: 'November 17, 2025 at 3:30 PM' },\n                        { author: 'Julius Gorner', text: 'Thanks for the update.', createdTime: 'November 17, 2025 at 3:45 PM' }]\n                    }\n                }]\n            },\n            {\n                index: 6, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Reason for cancellation of Order 10253?', createdTime: 'November 18, 2025 at 1:00 PM',\n                        isResolved: false, replies: [{ author: 'Cristi Espinos', text: 'Customer requested cancellation.', createdTime: 'November 18, 2025 at 1:30 PM' },\n                        { author: 'Julius Gorner', text: 'Understood, thanks.', createdTime: 'November 18, 2025 at 3:15 PM' }]\n                    }\n                }]\n            },\n            {\n                index: 7, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Pending status for Order 10254 - any progress?', createdTime: 'November 19, 2025 at 3:00 PM',\n                        isResolved: false, replies: [{ author: 'Cristi Espinos', text: 'Awaiting customs clearance.', createdTime: 'November 19, 2025 at 3:30 PM' },\n                        { author: 'Julius Gorner', text: 'Please keep me posted,', createdTime: 'November 19, 2025 at 3:45 PM' }]\n                    }\n                }]\n            },\n            {\n                index: 9, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Order 10256 shipped, tracking details shared?', createdTime: 'November 18, 2025 at 3:00 AM',\n                        isResolved: false, replies: [{ author: 'Cristi Espinos', text: 'Tracking sent via email,', createdTime: 'November 18, 2025 at 3:30 AM' },\n                        { author: 'Julius Gorner', text: 'Received, thank you,', createdTime: 'November 18, 2025 at 3:45 AM' }]\n                    }\n                }]\n            },\n            {\n                index: 10, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Delivered order 10257, confirm recipient name.', createdTime: 'November 18, 2025 at 2:00 PM',\n                        isResolved: true, replies: [{ author: 'Cristi Espinos', text: 'Recipient verified as Michael Holz.', createdTime: 'November 18, 2025 at 2:30 PM' },\n                        { author: 'Julius Gorner', text: 'Great, noted.', createdTime: 'November 18, 2025 at 2:45 PM' }]\n                    }\n                }]\n            },\n            {\n                index: 11, cells: [{\n                    index: 4, comment: {\n                        author: 'Julius Gorner', text: 'Order 10258 cancelled, reason documented?', createdTime: 'November 18, 2025 at 12:00 PM',\n                        isResolved: false, replies: [{ author: 'Cristi Espinos', text: 'Customer changed requirements', createdTime: 'November 18, 2025 at 12:30 PM' },\n                        { author: 'Julius Gorner', text: 'Understood, thanks.', createdTime: 'November 18, 2025 at 12:45 PM' }]\n                    }\n                }]\n            }],\n        }],\n        created: () => {\n            spreadsheet.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'Shipment Details!A1:F1');\n            spreadsheet.hideRibbonTabs(['Home', 'Insert', 'Formulas', 'Data', 'View'], true);\n            // Added comments using the updateCell method.\n            spreadsheet.updateCell({\n                comment: {\n                    author: 'Cristi Espinos', text: 'Validate customer name for Order 10249.', createdTime: 'November 18, 2025 at 4:00 PM',\n                    isResolved: false, replies: [{ author: 'Julius Gorner', text: 'Confirmed as Karin Josephs', createdTime: 'November 18, 2025 at 4:30 PM' },\n                    { author: 'Cristi Espinos', text: 'Perfect, noted.', createdTime: 'November 18, 2025 at 5:30 PM' }]\n                }\n            }, 'Shipment Details!B3');\n            spreadsheet.updateCell({\n                comment: {\n                    author: 'Cristi Espinos', text: 'Verify address details for delivery.', createdTime: 'November 18, 2025 at 4:00 PM',\n                    isResolved: true, replies: [{ author: 'Julius Gorner', text: 'Address confirmed as Boulevard Tirou, 255.', createdTime: 'November 18, 2025 at 4:30 PM' }]\n                }\n            }, 'Shipment Details!C6');\n            spreadsheet.updateCell({\n                comment: {\n                    author: 'Cristi Espinos', text: 'Confirm country for Order 10255 delivery.', createdTime: 'November 18, 2025 at 4:00 PM',\n                    isResolved: false, replies: [{ author: 'Julius Gorner', text: 'Country verified as Switzerland.', createdTime: 'November 18, 2025 at 4:30 PM' },\n                    { author: 'Cristi Espinos', text: 'Acknowledged.', createdTime: 'November 18, 2025 at 5:30 PM' }]\n                }\n            }, 'Shipment Details!D9');\n        },\n    });\n    spreadsheet.appendTo('#spreadsheet');\n}\n"
    }
  ]
}