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


## NumberCellEditor

An editor that allows you to enter only numbers, punctuation, and symbols

**Signature:**

```typescript
export interface NumberCellEditor extends TextCellEditor 
```
**Extends:** [TextCellEditor](/refs/Interface/TextCellEditor)

## Remarks

Inherits [TextCellEditor](/refs/Interface/TextCellEditor).

You can use editFormat to display thousands symbols or limit the number of decimal places when inputting.

\[Superclass\]

[CellEditor](/refs/Interface/CellEditor) - [TextCellEditor](/refs/Interface/TextCellEditor)

## Example


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

// object type
column.editor = { type: "number", positiveOnly: true};

// Enter only integers
column.editor = {type:"number", editFormat:"#,##0"}

// Enter only 2 decimal places
column.editor = {type:"number", editFormat:"#,##0.00"}
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [addString](/refs/Interface/NumberCellEditor#addstring) | string | String appended with multipleChar |
| [blankWithSpace](/refs/Interface/NumberCellEditor#blankwithspace) | boolean | Whether to allow space input with the space bar key |
| [delay](/refs/Interface/NumberCellEditor#delay) | number | Specifies the speed at which the value changes while the button is pressed. |
| [direction](/refs/Interface/NumberCellEditor#direction) | string | Arrange buttons vertically or horizontally. |
| [editFormat](/refs/Interface/NumberCellEditor#editformat) | string | Format of entered numbers |
| [integerOnly](/refs/Interface/NumberCellEditor#integeronly) | boolean | Whether to allow input of only integer values |
| [max](/refs/Interface/NumberCellEditor#max) | number | Enter the maximum value. |
| [maxIntegerLength](/refs/Interface/NumberCellEditor#maxintegerlength) | number | Allowable input digits |
| [maxLengthExceptComma](/refs/Interface/NumberCellEditor#maxlengthexceptcomma) | boolean | Whether to set the maximum input length excluding commas (,) |
| [min](/refs/Interface/NumberCellEditor#min) | number | Enter the minimum value. |
| [multipleChar](/refs/Interface/NumberCellEditor#multiplechar) | string | Character key corresponding to addString |
| [positiveOnly](/refs/Interface/NumberCellEditor#positiveonly) | boolean | Whether to allow only positive values to be entered |
| [showStepButton](/refs/Interface/NumberCellEditor#showstepbutton) | boolean | Whether to display the step button |
| [step](/refs/Interface/NumberCellEditor#step) | number | Enter the value to be added or subtracted when the button is clicked. |
| [textReadOnly](/refs/Interface/NumberCellEditor#textreadonly) | boolean | Whether to allow input using the keyboard |
| [type](/refs/Interface/NumberCellEditor#type) | "number" | Cell Editor Type: Number |

## Properties Desc

### addString

String appended with multipleChar

`Type` - string

<hr/>

### blankWithSpace

Whether to allow space input with the space bar key

`Type` - boolean

<hr/>

### delay

Specifies the speed at which the value changes while the button is pressed.

`Type` - number

<hr/>

### direction

Arrange buttons vertically or horizontally.

`Type` - string

<hr/>

### editFormat

Format of numbers entered

`Type` - string

**Remarks:**

If you specify "\#,\#\#0.\#\#", the thousands separator , is displayed, as in "1,234,567.89", and only 2 decimal places are entered.

If the thousands separator and decimal point used in some countries are reversed, "\#,\#\#0.\#\#;,;." Designate as

For the format displayed on the screen, see [ValueColumn.numberFormat](/refs/Interface/ValueColumn#numberformat){/* */}.

<hr/>

### integerOnly

Whether to allow input of only integer values

`Type` - boolean

<hr/>

### max

Enter the maximum value.

`Type` - number

<hr/>

### maxIntegerLength

Allowable input digits

`Type` - number

**Remarks:**

If 0 is entered, there is no limit.

<hr/>

### maxLengthExceptComma

Whether to set the maximum input length excluding commas (,)

`Type` - boolean

<hr/>

### min

Enter the minimum value.

`Type` - number

<hr/>

### multipleChar

Character key corresponding to addString

`Type` - string

<hr/>

### positiveOnly

Whether to allow only positive values to be entered

`Type` - boolean

<hr/>

### showStepButton

Whether to display the step button

`Type` - boolean

<hr/>

### step

Enter the value to be added or subtracted when the button is clicked.

`Type` - number

<hr/>

### textReadOnly

Whether input using the keyboard is allowed

`Type` - boolean

<hr/>

### type

Cell Editor Type: Number

`Type` - "number"

<hr/>