blob: ea01edf043dc7e7b9a7ec0e4779ad69f980cf9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/**
* Created by rc2122 on 5/4/2017.
*/
import {Component, Input, Output, EventEmitter} from "@angular/core";
import {InputFEModel} from "app/models";
@Component({
selector: 'inputs-table',
templateUrl: './inputs-table.component.html',
styleUrls: ['../properties-table/properties-table.component.less']
})
export class InputsTableComponent {
@Input() inputs: Array<InputFEModel>;
@Output() inputValueChanged: EventEmitter<any> = new EventEmitter<any>();
@Output() deleteInput: EventEmitter<any> = new EventEmitter<any>();
constructor (){
}
onInputValueChanged = (input) => {
this.inputValueChanged.emit(input);
};
onDeleteInput = (input) => {
this.deleteInput.emit(input);
}
}
|