search/search-action.component.ts
selector | c8y-search-action |
templateUrl | ./search-action.component.html |
Properties |
Methods |
constructor(c8yRouter: C8yRouter, router: Router)
|
onClick | ||||||
onClick(mo: IManagedObject)
|
||||||
Parameters :
Returns :
void
|
onFilter | ||||||
onFilter(on: string)
|
||||||
Parameters :
Returns :
void
|
onSearch | ||||||
onSearch(on: string)
|
||||||
Parameters :
Returns :
void
|
triggerDataLoad |
triggerDataLoad()
|
Returns :
void
|
customQuery |
Type : UnaryFunction<string | Observable<IResultList<IManagedObject>>>
|
typeaheadReload |
Default value : new EventEmitter()
|
<c8y-search-input
(filter)="onFilter($event)"
(search)="onSearch($event)"
(onClick)="onClick($event)"
[enableCustomTemplatePlaceholder]="true"
[customDataQuery]="customQuery"
[externalTerm]="typeaheadReload"
>
<c8y-search-custom-filters
class="d-flex gap-16 p-l-4"
(refresh)="triggerDataLoad()"
(customDataQuery)="customQuery = $event"
></c8y-search-custom-filters>
</c8y-search-input>