src/app/graphs/label-search/label-search.component.ts
This component is responsible for the display of the search bar above the graph. It allows for filtering issues by multiple labels and text fragments.
selector | app-label-search |
styleUrls | ./label-search.component.scss |
templateUrl | ./label-search.component.html |
Properties |
Methods |
|
constructor(labelStore: LabelStoreService, ss: StateService)
|
|||||||||
Parameters :
|
emitSelectedLabels |
emitSelectedLabels()
|
Emit value representing label and text fragments in the search bar via this.filterSelection$
Returns :
void
|
Private loadLabels |
loadLabels()
|
Load all labels from backend that match the currently typed in ng-select element
Returns :
void
|
trackByFn | ||||||
trackByFn(item: FilterLabel)
|
||||||
Parameters :
Returns :
string
|
Public filterSelection$ |
Default value : new BehaviorSubject<FilterSelection>({
labels: [],
texts: []
})
|
labels$ |
Type : Observable<FilterLabel[]>
|
labelsInput$ |
Default value : new Subject<string>()
|
labelsLoading |
Default value : false
|
selectedLabels |
Type : FilterElement[]
|
Default value : []
|
./label-search.component.scss