import { setStyleAndAttributes } from '../base/util' ; import { Cell } from '../models/cell' ; import { Column } from '../models/column' ; import { ICellRenderer } from '../base/interface' ; import { CellRenderer } from './cell-renderer' ; hidden export class IndentCellRenderer extends CellRenderer implements ICellRenderer < Column > { public element : HTMLElement = this . parent . createElement ( 'TD' , { className : 'e-indentcell' } ) ; param { Cell } cell param { Object } data public render ( cell , data ) { let node = this . element . cloneNode ( ) as Element ; setStyleAndAttributes ( node , cell . attributes ) ; return node ; } }