RealGrid2 API
Interface
FormatOptions

FormatOptions

데이터 필드 값의 변환 형식에 대한 설정 모델

Signature:

export interface FormatOptions 

Remarks

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

Example

grid.setFormatOptions({booleanFormat: 'wrong:correct'});

Properties

PropertyModifiersTypeDescription
booleanFormatstringBoolean 형식의 값일 때 변환 서식
datetimeFormatstring날짜 형식의 값일 때 변환 서식
numberFormatstring숫자 형식의 값일 때 변환 서식
textFormatstring텍스트 형식의 값일 때 변환 서식

Properties Desc

booleanFormat

Boolean 형식의 값일 때 변환 서식

Remarks:

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

예) 'Nub: Yub'

datetimeFormat

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

Remarks:

예) 'yy-M-dd'

numberFormat

숫자 형식의 값일 때 변환 서식

Remarks:

예) '#,##0.###'

textFormat

텍스트 형식의 값일 때 변환 서식

Remarks:

세미콜론(;)으로 구분하여 왼쪽에는 String.prototype.replace의 첫 번째 매개변수, 오른쪽에는 두 번째 매개변수와 같은 타입으로 지정 예) '([A-Za-z]*); Mr\. \$1'