ColumnSummaryStyleObject
CellStyleCallback 으로 셀 스타일 변경 시 반환해야하는 스타일 모델 중 하나
Signature:
export interface ColumnSummaryStyleObject
Remarks
GridFooter.cellStyleCallback, HeaderSummary.cellStyleCallback 에서 사용된다.
Example
// 푸터 적용
const f = function (grid, cell) {
return {
styleName: 'custom-footer'
}
}
footer.cellStyleCallback = f;
const f2 = function (grid, cell) {
return {
styleName: 'custom-summary'
}
}
headerSummary.cellStyleCallback = f2;
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
booleanFormat | string | Boolean 형식의 값일 때 서식 | |
datetimeFormat | string | 날짜 형식의 값일 때 서식 | |
exportStyleName | string | excel로 export할때 적용될 스타일 명 | |
numberFormat | string | 숫자 형식의 값일 때 서식 | |
prefix | string | 값의 앞쪽에 덧붙여 표시할 텍스트 | |
styleName | string | 스타일 명 | |
suffix | string | 값의 뒤쪽에 덧붙여 표시할 텍스트 | |
textFormat | string | 텍스트 형식의 값일 때 서식 |
Properties Desc
booleanFormat
Boolean 형식의 값일 때 서식
Remarks:
이 값이 지정되면 boolean 필드의 값을 출력할 때 변환 형식으로 사용된다.
지정되지 않은 경우 데이터필드에 설정된 값을 사용한다.
콜론(:) 또는 세미콜론(;)으로 구분하여 왼쪽은 false
일 때, 오른쪽은 true
일 때
예) 'Nub: Yub'
datetimeFormat
날짜 형식의 값일 때 서식
exportStyleName
excel로 export할때 적용될 스타일 명
numberFormat
숫자 형식의 값일 때 서식
prefix
값의 앞쪽에 덧붙여 표시할 텍스트
styleName
스타일 명
suffix
값의 뒤쪽에 덧붙여 표시할 텍스트
textFormat
텍스트 형식의 값일 때 서식