pipeline-builder-demo
Version:
Pipeline Builder
31 lines (22 loc) • 650 B
text/typescript
import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';
import {ITableConfig} from './table-config';
({
selector: 'pb-table-editor',
templateUrl: 'table-editor.component.html',
styleUrls: ['table-editor.component.scss'],
})
export class TableEditorComponent implements OnInit {
() config: ITableConfig;
() source: any[];
() add = new EventEmitter();
() delete = new EventEmitter<string>();
constructor() { }
ngOnInit() {
}
addRow = () => {
this.add.emit();
};
delRow = (name: string) => {
this.delete.emit(name);
};
}