import { IGrid } from '../base/interface' ; import { classList } from '@syncfusion/ej2-base' ; import { Column } from '../models/column' ; hidden export class BatchEditRender { private parent : IGrid ; /**
     * Constructor for render module
     */ constructor ( parent ? ) { this . parent = parent ; } public update ( elements , args ) { args . cell . innerHTML = '' ; args . cell . appendChild ( this . getEditElement ( elements , args ) ) ; args . cell . classList . add ( 'e-editedbatchcell' ) ; classList ( args . row , [ 'e-editedrow' , 'e-batchrow' ] , [ ] ) ; } private getEditElement ( elements , args ) { let gObj = this . parent ; let form = this . parent . createElement ( 'form' , { id : gObj . element . id + 'EditForm' , className : 'e-gridform' } ) as HTMLFormElement ; form . appendChild ( elements [ args . columnObject . uid ] ) ; if ( args . columnObject . editType === 'booleanedit' ) { args . cell . classList . add ( 'e-boolcell' ) ; } if ( ! args . columnObject . editType ) { args . cell . classList . add ( 'e-inputbox' ) ; } return form ; } public removeEventListener ( ) { } }