{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-cell-template",
  "framework": "react",
  "type": "registry:component",
  "component": "SpreadsheetEditor",
  "variant": "cell-template",
  "dependencies": [
    "@syncfusion/ej2-react-spreadsheet",
    "@syncfusion/ej2-react-inputs",
    "@syncfusion/ej2-react-buttons",
    "@syncfusion/ej2-react-dropdowns"
  ],
  "description": "Spreadsheet editor with cell template feature using interview registration form scenario with input components.",
  "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/react/llms.txt",
    "skillPack": "syncfusion/react-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/react/js/spreadsheet-editor-cell-template.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-cell-template/SpreadSheetEditor.jsx",
      "content": "import * as React from 'react';\nimport { SpreadsheetComponent, SheetsDirective, SheetDirective, ColumnsDirective, RowsDirective, RowDirective, CellsDirective, RangesDirective, RangeDirective, CellDirective, ColumnDirective } from '@syncfusion/ej2-react-spreadsheet';\nimport { TextBoxComponent } from '@syncfusion/ej2-react-inputs';\nimport { RadioButtonComponent, ButtonComponent } from '@syncfusion/ej2-react-buttons';\nimport { DropDownListComponent, MultiSelectComponent } from '@syncfusion/ej2-react-dropdowns';\nimport '../spreadsheet-editor.css';\n/**\n * CellTemplate sample\n */\nfunction CellTemplate() {\n    let spreadsheet;\n    const scrollSettings = { isFinite: true };\n    const selectionSettings = { mode: 'None' };\n    const boldCenter = {\n        fontWeight: 'bold', textAlign: 'center', fontSize: '12pt', verticalAlign: 'middle',\n        textDecoration: 'underline'\n    };\n    function nameTextbox() {\n        return (<TextBoxComponent placeholder=\"Name\"></TextBoxComponent>);\n    }\n    function dobTextbox() {\n        return (<TextBoxComponent placeholder=\"DOB\"></TextBoxComponent>);\n    }\n    function genderRadioButton() {\n        return (<div style={{ paddingLeft: '2px' }}>\n                <RadioButtonComponent name=\"gender\" value=\"male\" label=\"Male\"></RadioButtonComponent>\n                <RadioButtonComponent name=\"gender\" value=\"female\" label=\"Female\"></RadioButtonComponent>\n            </div>);\n    }\n    function dropDownList() {\n        let experience = ['0 - 1 year', '1 - 3 years', '3 - 5 years', '5 - 10 years'];\n        return (<DropDownListComponent placeholder=\"Experience\" dataSource={experience}></DropDownListComponent>);\n    }\n    function multiSelect() {\n        let languages = ['JAVA', 'C#', 'SQL'];\n        return (<MultiSelectComponent placeholder=\"Areas of Interest\" showClearButton={false} dataSource={languages}></MultiSelectComponent>);\n    }\n    function mobileNoTextbox() {\n        return (<TextBoxComponent placeholder=\"Mobile Number\"></TextBoxComponent>);\n    }\n    function emailTextbox() {\n        return (<TextBoxComponent placeholder=\"Email\"></TextBoxComponent>);\n    }\n    function textArea() {\n        return (<TextBoxComponent placeholder=\"Address\" multiline={true}></TextBoxComponent>);\n    }\n    function button() {\n        return (<ButtonComponent content=\"Add\" style={{ float: \"right\" }} cssClass=\"e-flat\"></ButtonComponent>);\n    }\n    function onCreated() {\n        spreadsheet.cellFormat({ fontWeight: 'bold' }, 'B2:B9');\n        // Merges B1 and C1 cells\n        spreadsheet.merge('B1:C1');\n    }\n    return (<div className='control-pane'>\n            <div className='control-section spreadsheet-control'>\n                <SpreadsheetComponent showRibbon={false} enableContextMenu={false} allowPrint={false} showFormulaBar={false} cssClass={'e-custom-spreadsheet'} allowOpen={false} allowSave={false} ref={(ssObj) => { spreadsheet = ssObj; }} created={onCreated.bind(this)} name={'Candidates List'} scrollSettings={scrollSettings} allowEditing={false} selectionSettings={selectionSettings}>\n                    <SheetsDirective>\n                        <SheetDirective name='Registration Form' rowCount={40} colCount={30} showGridLines={false}>\n                            <RowsDirective>\n                                <RowDirective height={55}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Interview Registration Form' style={boldCenter}></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Name'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Date of Birth:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Gender:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Year of Experience:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Areas of Interest:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Mobile Number:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={45}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Email:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                                <RowDirective height={82}>\n                                    <CellsDirective>\n                                        <CellDirective index={1} value='Address:'></CellDirective>\n                                    </CellsDirective>\n                                </RowDirective>\n                            </RowsDirective>\n                            <ColumnsDirective>\n                                <ColumnDirective index={1} width={190}></ColumnDirective>\n                                <ColumnDirective width={350}></ColumnDirective>\n                            </ColumnsDirective>\n                            <RangesDirective>\n                                <RangeDirective template={nameTextbox} address='C2'></RangeDirective>\n                                <RangeDirective template={dobTextbox} address='C3'></RangeDirective>\n                                <RangeDirective template={genderRadioButton} address='C4'></RangeDirective>\n                                <RangeDirective template={dropDownList} address='C5'></RangeDirective>\n                                <RangeDirective template={multiSelect} address='C6'></RangeDirective>\n                                <RangeDirective template={mobileNoTextbox} address='C7'></RangeDirective>\n                                <RangeDirective template={emailTextbox} address='C8'></RangeDirective>\n                                <RangeDirective template={textArea} address='C9'></RangeDirective>\n                                <RangeDirective template={button} address='C11'></RangeDirective>\n                            </RangesDirective>\n                        </SheetDirective>\n                    </SheetsDirective>\n                </SpreadsheetComponent>\n            </div>\n        </div>);\n}\nexport default CellTemplate;"
    }
  ]
}