LineCellEditor
Text editor that can accept one-line input
Signature:
export interface LineCellEditor extends TextCellEditorExtends: TextCellEditor
Remarks
RealGrid's basic editor. If the editor property is not specified for the column or 'line' / 'text' is specified, LineCellEditor is used. Inherits TextCellEditor.
[Superclass]
Example
//string type
column.editor = "line"
// object type
column.editor = { type: "line", maxLength: 1}Properties
| Property | Type | Description |
|---|---|---|
| ignoreCharacters | string | String to exclude when inputting |
| inputCharacters | string | Strings allowed when inputting |
| type | "line" | "text" | Cell Editor Type: Single Line |
Properties Desc
ignoreCharacters
String to exclude when inputting
Type - string
Remarks:
When restricting specific characters when editing, enter the string to be restricted.
Example:
// Only English characters can be entered, ABCD cannot be entered, but abcd can be entered.
column.editor = {type:"line", inputCharacters:"A-Za-z", ignoreCharacters:"ABCD"}inputCharacters
Strings allowed when inputting
Type - string
Remarks:
When editing, if only a specific set of characters, such as English or numbers, can be entered, enter the characters to be allowed.
Example:
// Only English characters can be entered.
column.editor = {type:"line", inputCharacters:"A-Za-z"};
// Only Korean characters can be entered
column.editor = {type:"line", inputCharacters:"ㄱ-Hi"};type
Cell editor type: Single line
Type - "line" | "text"