UserCellsCallback

사용자가 출력 셀을 추가할때 사용되는 콜백 GridExportOptions.userCells이 있는 경우 수행되지 않는다.

타입

export type UserCellsCallback = (grid: GridBase, rowCount: number, columnCount: number, sheetName: string) => UserExportCell[];

상세 설명

[매개변수 목록] grid - 현재 export를 진행중인 grid

rowCount - sheet의 행수

colCount - sheet의 컬럼수

name - sheet의 name

[반환값] - UserExportCell의 배열

예제 코드

var callback = function(grid, rowCount, colCount, sheetName) {
 return [{row:3, col: colCount -3, mergeCol: 3, text:"열의 마지막에 표시", styles:{textAlign:"right"}}]
}
gridView.exportGrid({"type":"excel", "target":"local", "yOffset":4, userCellsCallback: callback});