RealGrid2 API
Interface
CopyOptions

CopyOptions

그리드의 내용을 클립보드를 복사하는 것에 대한 설정 모델

Signature:

export interface CopyOptions 

Remarks

그리드 에서 옵션으로 설정할 때는 필요한 정보만 넣으면 된다.

Example

grid.setCopyOptions({enabled: false});

Events

PropertyModifiersTypeDescription
copyTextCallbackCopyTextCallback클립보드에 복사될 text를 결정하는 콜백

Properties

PropertyModifiersTypeDescription
booleanFormatstringboolean 형식의 값일 때 변환 서식
copyDisplayTextboolean보여지는 text 로 복사할 것인지의 여부
datetimeFormatstring날짜 형식의 값일 때 변환 서식
enabledboolean복사 가능 여부
includeHeaderTextboolean헤더의 text 를 포함하여 복사할 것인지의 여부
lookupDisplaybooleanlookupDisplay가 true인 컬럼의 text복사
singleModeboolean선택 영역과 상관없이 focus 된 셀 하나만 복사할 것인지에 대한 여부

Events Desc

copyTextCallback

클립보드에 복사될 text를 결정하는 콜백

Remarks:

셀이 복사될때 호출된다.

지정되지 않거나 undefined를 return하면 value또는 다른 설정값이 적용된다.

CopyTextCallback의 형식이다.

Properties Desc

booleanFormat

boolean 형식의 값일 때 변환 서식

Remarks:

콜론(:) 또는 세미콜론(;)으로 구분하여 왼쪽은 false일 때, 오른쪽은 true일 때

예) 'N:Y'

copyDisplayText

보여지는 text 로 복사할 것인지의 여부

Remarks:

true 시 number, date, dropdown, multicheck 의 경우 보여지는 Text로 복사한다.

datetimeFormat

날짜 형식의 값일 때 변환 서식

Remarks:

예) 'yyyy-MM-dd'

enabled

복사 가능 여부

includeHeaderText

헤더의 text 를 포함하여 복사할 것인지의 여부

Remarks:

ex) OrderID 10233

lookupDisplay

lookupDisplay가 true인 컬럼의 text복사

Remarks:

true시 lookupDisplay가 true인 컬럼은 value가 아닌 label 또는 labelField의 값을 복사

singleMode

선택 영역과 상관없이 focus 된 셀 하나만 복사할 것인지에 대한 여부