RealGrid2 API
Interface
MultiLineCellEditor

MultiLineCellEditor

여러 줄 입력을 받을 수 있는 편집기

CellEditor 를 상속한다.

[상위 클래스]

CellEditor

Signature:

export interface MultiLineCellEditor extends CellEditor 

Extends: CellEditor

Example

// string type
column.editor = "multiline"
 
// object type
column.editor = { type: "multiline", maxLength: 50}

Properties

PropertyModifiersTypeDescription
altEnterNewLineboolean강제개행을 하기위한 키 지정
heightnumbereditor의 높이
maxLengthnumber입력할 수 있는 문자의 최대 길이
minHeightnumbereditor의 최소높이.
type'multiline'셀 편집기 종류 : 여러 줄

Properties Desc

altEnterNewLine

강제개행을 하기위한 키 지정

Remarks:

true인 경우 ctrl + enter 는 무시되고 alt + enter 또는 shift + enter 로 강제 개행이 된다.

false인 경우 ctrl + enter 로 강제 개행한다.

height

editor의 높이

Remarks:

0인경우 높이를 입력된 내용에 맞춰 자동으로 조절한다. -1인 경우 셀의 높이로 고정한다. 0 이상인 경우 입력된 높이로 고정한다.

maxLength

입력할 수 있는 문자의 최대 길이

Remarks:

0을 입력시에 제한이 없다.

minHeight

editor의 최소높이.

type

셀 편집기 종류 : 여러 줄