import { Cell } from '../models/cell' ; import { ICellRenderer } from '../base/interface' ; import { IndentCellRenderer } from './indent-cell-renderer' ; import { Column } from '../models/column' ; hidden export class ExpandCellRenderer extends IndentCellRenderer implements ICellRenderer < Column > { param { Cell } cell param { Object } data public render ( cell , data ) { let node = this . element . cloneNode ( ) as Element ; node . className = 'e-recordplusexpand' ; node . setAttribute ( 'ej-mappingname' , data . field ) ; node . setAttribute ( 'ej-mappingvalue' , data . key ) ; node . setAttribute ( 'aria-expanded' , 'true' ) ; node . setAttribute ( 'tabindex' , '-1' ) ; node . appendChild ( this . parent . createElement ( 'div' , { className : 'e-icons e-gdiagonaldown e-icon-gdownarrow' } ) ) ; return node ; } }