search/search-results.component.ts
selector | c8y-search-results |
templateUrl | ./search-results.component.html |
Properties |
Methods |
constructor(route: ActivatedRoute, alert: AlertService)
|
|||||||||
Parameters :
|
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
resetFilter |
resetFilter()
|
Returns :
void
|
resetSearch |
resetSearch()
|
Returns :
void
|
filter |
Type : string
|
Default value : ''
|
filteringName |
Type : string
|
searchGrid |
Type : SearchGridComponent
|
Decorators :
@ViewChild(SearchGridComponent, {static: true})
|
searchText |
Type : string
|
Default value : ''
|
<c8y-title>
<span translate class="p-r-4">Search</span>
<small
ngNonBindable
translate
*ngIf="searchText"
[translateParams]="{
searchHint: searchText
}"
>searching "{{ searchHint }}"</small
>
<small
ngNonBindable
translate
*ngIf="filter"
[translateParams]="{
filterHint: filter
}"
>filtered by "{{ filterHint }}"</small
>
</c8y-title>
<c8y-search-grid [searchText]="searchText" [filteringName]="filteringName"></c8y-search-grid>