GetTemplateCallback
TemplateCellRenderer.callback 에 사용되는 콜백 형식
타입
(grid: GridBase, model: GridCell, width: number, height: number) => string;
상세 설명
[매개변수 목록]
grid
- GridBase 컨트롤
model
- 그리드의 셀
width
- 셀의 너비
height
- 셀의 높이
[반환값] - string type 의 template 형식
예제 코드
const f = function (grid, model, field) {
if (field == "xxx") {
return "1234";
}
}