import { isNullOrUndefined } from '@syncfusion/ej2-base' ; import { ICellRenderer } from '../base/interface' ; import { CellRenderer } from './cell-renderer' ; import { Column } from '../models/column' ; import { Cell } from '../models/cell' ; hidden export class DetailExpandCellRenderer extends CellRenderer implements ICellRenderer < Column > { public element : HTMLElement = this . parent . createElement ( 'TD' , { className : 'e-detailrowcollapse' , attrs : { 'aria-expanded' : 'false' , role : 'gridcell' , tabindex : '-1' } } ) ; /**
     * Function to render the detail expand cell
     */ public render ( cell , data , attributes ) { let node = this . element . cloneNode ( ) as Element ; if ( attributes && ! isNullOrUndefined ( attributes [ 'class' ] ) ) { node . className = '' ; node . className = attributes [ 'class' ] ; node . appendChild ( this . parent . createElement ( 'div' , { className : 'e-icons e-dtdiagonaldown e-icon-gdownarrow' } ) ) ; } else { node . appendChild ( this . parent . createElement ( 'div' , { className : 'e-icons e-dtdiagonalright e-icon-grightarrow' } ) ) ; } return node ; } }