FormatOptions

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

상세 설명

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

예제 코드

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

프로퍼티 정보

booleanFormat


booleanFormat: string

Boolean 형식의 값일 때 변환 서식

상세 설명

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

예) 'Nub: Yub'

datetimeFormat


datetimeFormat: string

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

상세 설명

예) 'yy-M-dd'

numberFormat


numberFormat: string

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

상세 설명

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

textFormat


textFormat: string

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

상세 설명

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