{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-default",
  "framework": "angular",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "default",
  "dependencies": [
    "@syncfusion/ej2-angular-spreadsheet"
  ],
  "description": "Spreadsheet sample for entering, formatting, calculating, and organizing worksheet data.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 2 (v34.1.29)",
    "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/angular/llms.txt",
    "skillPack": "syncfusion/angular-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/angular/spreadsheet-editor-default.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-default/default.component.ts",
      "content": "import { Component, ViewEncapsulation, Inject, ViewChild } from '@angular/core';\nimport { getDefaultData } from '../data';\nimport { SpreadsheetComponent, SpreadsheetModule } from '@syncfusion/ej2-angular-spreadsheet';\n/**\n * Default Spreadsheet Controller\n */\n@Component({\n    selector: 'control-content',\n    templateUrl: 'default.html',\n    encapsulation: ViewEncapsulation.None,\n    standalone: true,\n    imports: [SpreadsheetModule]\n})\n\nexport class DefaultController {\n    @ViewChild('default')\n    public spreadsheetObj!: SpreadsheetComponent;\n    public data: Object[] = getDefaultData();\n    public openUrl = 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/open';\n    public saveUrl = 'https://document.syncfusion.com/web-services/spreadsheet-editor/api/spreadsheet/save';\n    created() {\n        this.spreadsheetObj.cellFormat({ fontWeight: 'bold', textAlign: 'center', verticalAlign: 'middle' }, 'A1:F1');\n        this.spreadsheetObj.cellFormat({ fontWeight: 'bold' }, 'E31:F31');\n        this.spreadsheetObj.cellFormat({ textAlign: 'right' }, 'E31');\n        // Apply format to the specified range in the active sheet.\n        this.spreadsheetObj.numberFormat('$#,##0.00', 'F2:F31');\n        // The default format code for the date format is 'm/d/yyyy'.\n        this.spreadsheetObj.numberFormat('m/d/yyyy', 'E2:E30');\n    }\n}\n"
    },
    {
      "target": "src/components/spreadsheet-editor-default/default.html",
      "content": "\n<div class=\"control-section\">\n    <ejs-spreadsheet #default [openUrl]=\"openUrl\" [saveUrl]=\"saveUrl\" (created)=\"created()\">\n        <e-sheets>\n            <e-sheet name=\"Car Sales Report\">\n                <e-ranges>\n                    <e-range [dataSource]=\"data\"></e-range>\n                </e-ranges>\n                <e-rows>\n                    <e-row [index]=\"30\">\n                        <e-cells>\n                            <e-cell [index]=\"4\" value=\"Total Amount:\"></e-cell>\n                            <e-cell formula=\"=SUM(F2:F30)\"></e-cell>\n                        </e-cells>\n                    </e-row>\n                </e-rows>\n                <e-columns>\n                    <e-column [width]=180></e-column>\n                    <e-column [width]=130></e-column>\n                    <e-column [width]=130></e-column>\n                    <e-column [width]=180></e-column>\n                    <e-column [width]=130></e-column>\n                    <e-column [width]=120></e-column>\n                </e-columns>\n            </e-sheet>\n        </e-sheets>\n    </ejs-spreadsheet>\n</div>"
    }
  ]
}