{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-freeze-pane",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "freeze-pane",
  "dependencies": [
    "@syncfusion/ej2-spreadsheet"
  ],
  "description": "Spreadsheet sample freezing rows and columns for easier workbook navigation.",
  "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-freeze-pane.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-freeze-pane/spreadsheet-editor.html",
      "content": "<div class=\"control-section\">\n    <div id=\"container\"></div>\n</div>\n<style>\n    .control-section .control-wrapper {\n        height: calc(100vh - 230px);\n    }\n\n    .e-spreadsheet .e-main-panel .e-main-content {\n        margin-left: 0 !important;\n    }\n\n    #sb-content .e-spreadsheet .e-tab .e-tab-text {\n        display: inherit;\n    }\n\n    /* newTab support styles */\n    .ej2-new .sb-header,\n    .ej2-new .sb-bread-crumb,\n    .ej2-new #action-description,\n    .ej2-new #description-section,\n    .ej2-new #description {\n        display: none\n    }\n\n    .ej2-new .container-fluid,\n    .ej2-new .container-fluid .control-section,\n    #sidebar-section {\n        padding: 0px;\n    }\n\n    .ej2-new .sample-browser>.content.e-view {\n        top: 0px;\n        padding: 0px;\n        text-align: initial;\n        height: 100%;\n        overflow: hidden;\n    }\n\n    .ej2-new .control-section .control-section {\n        height: 100vh;\n    }\n   .e-spreadsheet .e-main-panel .e-main-content{\n        margin-left: 0 !important;\n    }\n    /* end of newTab support styles */\n</style>\n<!-- custom code end -->"
    },
    {
      "target": "src/components/spreadsheet-editor-freeze-pane/spreadsheet-editor.ts",
      "content": "import { Spreadsheet } from '@syncfusion/ej2-spreadsheet';\nimport { defaultData } from '../datasource/spreadsheet-editor-data';\n\n/**\n * Freeze pane sample\n */\nexport function initSpreadsheetEditorFreezePane(): void {\n\n    let spreadsheet: Spreadsheet = new Spreadsheet({\n        sheets: [\n            {\n                name: 'Gross Salary',\n                ranges: [{ dataSource: defaultData, startCell: 'A2' }],\n                rows: [\n                    {\n                        cells: [\n                            {\n                                index: 1, value: 'Period', style: {\n                                    fontSize: '12pt', fontWeight: 'bold',\n                                    textAlign: 'center', verticalAlign: 'middle'\n                                }\n                            },\n                            {\n                                index: 3, value: 'Total Gross Salary', style: {\n                                    fontSize: '12pt', fontWeight: 'bold',\n                                    textAlign: 'center', verticalAlign: 'middle'\n                                }\n                            },\n                        ]\n                    },\n                    {\n                        index: 26,\n                        cells: [\n                            {\n                                index: 13, value: 'Total Amount', style: {\n                                    fontSize: '12pt', fontWeight: 'bold',\n                                    textAlign: 'center', verticalAlign: 'middle'\n                                }\n                            },\n                            {\n                                formula: '=SUM(O4:O26)', style: {\n                                    fontSize: '12pt', fontWeight: 'bold', textAlign: 'center',\n                                    verticalAlign: 'middle'\n                                }\n                            },\n                            {\n                                formula: '=SUM(P4:P26)', style: {\n                                    fontSize: '12pt', fontWeight: 'bold', textAlign: 'center',\n                                    verticalAlign: 'middle'\n                                }\n                            },\n                        ]\n                    }\n                ],\n                columns: [\n                    { width: 80 }, { width: 80 }, { width: 100 }, { width: 100 },\n                    { width: 100 }, { width: 100 }, { width: 100 }, { width: 100 },\n                    { width: 100 }, { width: 100 }, { width: 100 }, { width: 100 },\n                    { width: 80 }, { width: 100 }, { width: 100 }, { width: 100 }\n                ],\n                selectedRange: 'C1',\n                // Specifies the number of frozen rows\n                frozenRows: 2,\n                // Specifies the number of frozen columns\n                frozenColumns: 2\n            }],\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        created: (): void => {\n            spreadsheet.merge('A1:B1');\n            spreadsheet.merge('C1:P1');\n            spreadsheet.cellFormat({ backgroundColor: '#4e4ee6', color: '#FFFFF4', fontSize: '12pt', fontWeight: 'bold'}, 'A1:P2');\n            spreadsheet.cellFormat({textAlign: 'center', verticalAlign: 'middle'}, 'A1:P2');\n            spreadsheet.cellFormat({ backgroundColor: '#4e4ee6', color: '#FFFFF4' }, 'A3:B26');\n            spreadsheet.numberFormat('$#,##0.00', 'C2:P26');\n            spreadsheet.numberFormat('$#,##0.00', 'O27:P27');\n            spreadsheet.wrap('C2:P2');\n        }\n    });\n\n    spreadsheet.appendTo('#container');\n}\n"
    }
  ]
}