{/* Do not edit this file. It is automatically generated by API Documenter. */}


## CellEditor

Model on which cell editors are based

**Signature:**

```typescript
export interface CellEditor
```

## Remarks

There are properties that can be specified for each cell editor, and if not specified in DataColumn, [LineCellEditor](/refs/Interface/LineCellEditor) is set as default.

Additionally, the `type` property in object form can be specified in the form of a string in [column.editor](/refs/Interface/ValueColumn#editor).

\[List\]

[LineCellEditor](/refs/Interface/LineCellEditor){/* */}: One-line input editor

[PasswordCellEditor](/refs/Interface/PasswordCellEditor){/* */}: Password input editor

[MultiLineCellEditor](/refs/Interface/MultiLineCellEditor){/* */}: Multi-line input editor

[NumberCellEditor](/refs/Interface/NumberCellEditor){/* */}: Number input editor

[DateCellEditor](/refs/Interface/DateCellEditor){/* */}: Date editor

[BTDateCellEditor](/refs/Interface/BTDateCellEditor){/* */}: Bootstrap date editor.

[DropDownCellEditor](/refs/Interface/DropDownCellEditor){/* */}: Drop down editor

[SearchCellEditor](/refs/Interface/SearchCellEditor){/* */}: Drop-down editor with added search functionality

[MultiCheckCellEditor](/refs/Interface/MultiCheckCellEditor){/* */}: Drop-down editor with multiple selections

## Example


```js
//string type
column.editor = "line"

//object type
column.editor = { type: "line", maxLength: 1}
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [booleanFormat](/refs/Interface/CellEditor#booleanformat) | string | Format of the editor displayed when the value is Boolean |
| [datetimeFormat](/refs/Interface/CellEditor#datetimeformat) | string | Format of the editor displayed when the value is in date format |
| [emptyValue](/refs/Interface/CellEditor#emptyvalue) | any | Value saved when a cell is blank after removing or editing its value |
| [nowChar](/refs/Interface/CellEditor#nowchar) | string | **_(ALPHA)_** The character that corresponds now when entered into the editor |
| [readOnly](/refs/Interface/CellEditor#readonly) | boolean | Whether the value of a data cell can be modified |
| [textCase](/refs/Interface/CellEditor#textcase) | [TextInputCase](/refs/realgrid#textinputcase) | Case-sensitive type of characters entered into the editor |
| [todayChar](/refs/Interface/CellEditor#todaychar) | string | character that causes the editor to enter the current date |
| [type](/refs/Interface/CellEditor#type) | string | Cell Editor Types |

## Properties Desc

### booleanFormat

Formatting of the editor displayed when the value is a Boolean

`Type` - string

**Remarks:**

Operates when the data field is boolean type.

<hr/>

### datetimeFormat

Formatting in the editor that appears when the value is in date format.

`Type` - string

**Remarks:**

Works when the data field is of date type

<hr/>

### emptyValue

Value saved when a cell's value is removed or left blank after editing

`Type` - any

<hr/>

### nowChar

The character that corresponds now when entered into the editor

`Type` - string

**Remarks:**

This works when the data field is a date type or the editor is a date editor.

<hr/>

### readOnly

Whether the value of a data cell can be modified

`Type` - boolean

**Remarks:**

When `true`

<hr/>

### textCase

Case-sensitive form of characters entered into the editor

`Type` - [TextInputCase](/refs/realgrid#textinputcase)

**Remarks:**

Characters entered into the editor are automatically changed to lowercase and lowercase. If you specify [TextInputCase.DEFAULT](/refs/realgrid#textinputcase), the value specified in the textInputCase of the column will be followed.

<hr/>

### todayChar

A character that causes the editor to enter the current date

`Type` - string

**Remarks:**

This works when the data field is a date type, or is a text type but is a date editor.

<hr/>

### type

Cell editor types

`Type` - string

**Remarks:**

[LineCellEditor](/refs/Interface/LineCellEditor){/* */}: "line" or "text"

[PasswordCellEditor](/refs/Interface/PasswordCellEditor){/* */}: "password"

[MultiLineCellEditor](/refs/Interface/MultiLineCellEditor){/* */}: "multiline"

[NumberCellEditor](/refs/Interface/NumberCellEditor){/* */}: "number"

[DateCellEditor](/refs/Interface/DateCellEditor){/* */}: "date"

[BTDateCellEditor](/refs/Interface/BTDateCellEditor){/* */}: "btdate"

[DropDownCellEditor](/refs/Interface/DropDownCellEditor){/* */}: "dropdown" or "list"

[SearchCellEditor](/refs/Interface/SearchCellEditor){/* */}: "search"

[MultiCheckCellEditor](/refs/Interface/MultiCheckCellEditor){/* */}: "checklist"

<hr/>