@Input('dataTypeMap') dataTypeMap$: Observable<Map<string, DataTypeModel>>;
@Input('isView') isView: boolean;
@Input() existingInputNames: Array<string> = [];
+ @Input('defaultType') defaultType: string;
@Output('onAddInput') onAddInputEvent: EventEmitter<InputOperationParameter>;
dataTypeMap: Map<string, DataTypeModel>;
}
showAddInput() {
+ if (this.defaultType) {
+ this.inputToAdd.type = this.dataTypeMap.get(this.defaultType) ? this.defaultType : undefined;
+ }
this.showForm = true;
this.showAddLink = false;
}