{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-conditional-formatting",
  "framework": "javascript",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "conditional-formatting",
  "dependencies": [
    "@syncfusion/ej2-spreadsheet"
  ],
  "description": "Spreadsheet sample applying conditional rules, colors, and status-based formatting.",
  "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-conditional-formatting.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-conditional-formatting/spreadsheet-editor.html",
      "content": "<div class=\"control-section\">\n    <div id=\"container\"></div>\n</div>\n\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</style>"
    },
    {
      "target": "src/components/spreadsheet-editor-conditional-formatting/spreadsheet-editor.ts",
      "content": "import { Spreadsheet } from '@syncfusion/ej2-spreadsheet';\nimport {conditionalFormatting } from '../datasource/spreadsheet-editor-data';\n\nexport function initSpreadsheetEditorConditionalFormatting(): void {\n    let currencyFormat: string = '$#,##0.00';\n    //Initialize Spreadsheet component.\n    let spreadsheet: Spreadsheet = new Spreadsheet({\n        sheets: [{\n            rows: [{\n                height: 30,\n                cells: [{\n                    index: 1,\n                    value: 'Inventory List',\n                }]\n            }],\n            ranges: [{\n                dataSource: conditionalFormatting,\n                startCell: 'A2'\n                },\n            ],\n            name: 'Inventory List',\n            conditionalFormats: [\n                { type: 'GYRColorScale', range: 'C3:C18' },\n                { type: 'LessThan', cFColor: 'RedFT', value: '8-8-2019', range: 'G3:G18' }\n            ],\n            columns: [{\n                width: 100\n            },\n            {\n                width: 158\n            },\n            {\n                width: 72\n            },\n            {\n                width: 113\n            },\n            {\n                width: 113\n            },\n            {\n                width: 77\n            },\n            {\n                width: 97\n            },\n            {\n                width: 73\n            }]\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: () => {\n            spreadsheet.merge('A1:H1');\n            spreadsheet.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'A2:H2');\n            spreadsheet.cellFormat({ fontWeight: 'bold', textAlign: 'center', verticalAlign: 'middle', fontSize: '13pt' }, 'A1:H1');\n            spreadsheet.numberFormat(currencyFormat, 'D3:D18');\n            spreadsheet.numberFormat(currencyFormat, 'E3:E18');\n            spreadsheet.numberFormat(currencyFormat, 'F3:F18');\n            spreadsheet.numberFormat('m/d/yyyy', 'G3:G18');\n            spreadsheet.conditionalFormat({ type: 'BlueDataBar', range: 'D3:D18' });\n            spreadsheet.conditionalFormat({ type: 'GreenDataBar', range: 'E3:E18' });\n            spreadsheet.conditionalFormat({ type: 'ThreeStars', range: 'H3:H18' });\n            spreadsheet.conditionalFormat({ type: 'Top10Items', value: '1',\n             format: { style: { color: '#ffffff', backgroundColor: '#009999', fontWeight: 'bold'}}, range: 'F3:F18' });\n            spreadsheet.conditionalFormat({ type: 'Bottom10Items', value: '1',\n             format: { style: { color: '#ffffff', backgroundColor: '#c68d53', fontWeight: 'bold'}}, range: 'F3:F18' });\n        }\n    });\n    //Render initialized Spreadsheet component\n    spreadsheet.appendTo('#container');\n};\n// custom code start\n/* tslint:enable:max-func-body-length */\n// custom code end\n"
    }
  ]
}