import { FormGroup } from '@angular/forms' ; import { TableDataSource } from './table-data-source' ; import { TableElement } from './table-element' ; export class TableElementTemplateDriven < T > extends TableElement < T > { id : number ; _editing : boolean ; _currentData : T ; originalData ? : T ; source : TableDataSource < T > ; get validator ( ) : any { return null ; } set validator ( value ) { } get currentData ( ) : T { return this . _currentData ; } set currentData ( data ) { this . _currentData = data ; } get editing ( ) : boolean { return this . _editing ; } set editing ( value ) { this . _editing = value ; } constructor ( init ) { super ( ) ; Object . assign ( this , init ) ; } isValid ( ) { return true ; } }