import { Component, Input, Output, EventEmitter } from '@angular/core'; import { Cell } from '../../../lib/data-set/cell'; @Component({ selector: 'table-cell-edit-mode', template: `
`, }) export class EditCellComponent { @Input() cell: Cell; @Input() inputClass: string = ''; @Output() edited = new EventEmitter(); onEdited(event: any): boolean { this.edited.next(event); return false; } getEditorType(): string { return this.cell.getColumn().editor && this.cell.getColumn().editor.type; } }