[748a59]: / nih-ct-protocol-ui / src / app / search-items / search-items.component.ts

Download this file

41 lines (26 with data), 777 Bytes

 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
34
35
36
37
38
39
40
import { Component, OnInit } from '@angular/core';
import {Result} from './result';
import {CriteriaService} from './criteria.service';
@Component({
selector: 'app-search-items',
templateUrl: './search-items.component.html',
styleUrls: ['./search-items.component.css']
})
export class SearchItemsComponent implements OnInit {
userInput: string;
inputs = [];
public options: Object = {
placeholderText: 'Enter Protocol Input',
charCounterCount: false,
toolbarButtons: ['bold', 'italic', 'underline','formatUL'],
quickInsertTags: []
}
addNew(){
this.userInput = '';
this.CriteriaService.addInput(userInput)
.subscribe(this.userInput => this.userInput.push(inputs));
}
constructor() { }
ngOnInit() {
}
}