1 import {Component, Input} from '@angular/core';
2 import {DropdownValue} from "app/ng2/components/ui/form-components/dropdown/ui-element-dropdown.component";
3 import {OperationParameter} from 'app/models';
7 templateUrl: './param-row.component.html',
8 styleUrls: ['./param-row.component.less']
11 export class ParamRowComponent {
12 @Input() param: OperationParameter;
13 @Input() inputProps: Array<DropdownValue>;
14 @Input() propTypes: {};
15 @Input() onRemoveParam: Function;
16 @Input() isAssociateWorkflow: boolean;
18 propTypeEnum: Array<string> = ['boolean', 'float', 'integer', 'string'];
19 filteredInputProps: Array<DropdownValue> = [];
26 this.filteredInputProps = _.filter(this.inputProps, prop => {
27 return this.propTypes[prop.value] === this.param.type;