RealGrid2 API
Interface
ColumnSummaryStyleObject

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

PropertyModifiersTypeDescription
booleanFormatstringBoolean 형식의 값일 때 서식
datetimeFormatstring날짜 형식의 값일 때 서식
exportStyleNamestringexcel로 export할때 적용될 스타일 명
numberFormatstring숫자 형식의 값일 때 서식
prefixstring값의 앞쪽에 덧붙여 표시할 텍스트
styleNamestring스타일 명
suffixstring값의 뒤쪽에 덧붙여 표시할 텍스트
textFormatstring텍스트 형식의 값일 때 서식

Properties Desc

booleanFormat

Boolean 형식의 값일 때 서식

Remarks:

이 값이 지정되면 boolean 필드의 값을 출력할 때 변환 형식으로 사용된다.

지정되지 않은 경우 데이터필드에 설정된 값을 사용한다.

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

예) 'Nub: Yub'

datetimeFormat

날짜 형식의 값일 때 서식

exportStyleName

excel로 export할때 적용될 스타일 명

numberFormat

숫자 형식의 값일 때 서식

prefix

값의 앞쪽에 덧붙여 표시할 텍스트

styleName

스타일 명

suffix

값의 뒤쪽에 덧붙여 표시할 텍스트

textFormat

텍스트 형식의 값일 때 서식