File

search/search-action.component.ts

Metadata

Index

Properties
Methods

Constructor

constructor(c8yRouter: C8yRouter, router: Router, moduleConfig: SearchConfig)
Parameters :
Name Type Optional
c8yRouter C8yRouter No
router Router No
moduleConfig SearchConfig No

Methods

onClick
onClick(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : void
onFilter
onFilter(on: string)
Parameters :
Name Type Optional
on string No
Returns : void
onSearch
onSearch(on: string)
Parameters :
Name Type Optional
on string No
Returns : void
triggerDataLoad
triggerDataLoad()
Returns : void

Properties

customPlaceholder
Type : string
customQuery
Type : UnaryFunction<string | Observable<IResultList<IManagedObject>>>
Public moduleConfig
Type : SearchConfig
Decorators :
@Optional()
@Inject(SEARCH_CONFIG)
showAdvancedFilters
Type : boolean
typeaheadReload
Default value : new EventEmitter()
<c8y-search-input
  (filter)="onFilter($event)"
  (search)="onSearch($event)"
  (onClick)="onClick($event)"
  [enableCustomTemplatePlaceholder]="true"
  [customPlaceholder]="customPlaceholder"
  [customDataQuery]="customQuery"
  [externalTerm]="typeaheadReload"
>
  <c8y-search-custom-filters
    *ngIf="showAdvancedFilters"
    class="d-flex gap-16 p-l-4 p-l-24 p-r-24"
    (refresh)="triggerDataLoad()"
    (customDataQuery)="customQuery = $event"
  ></c8y-search-custom-filters>
</c8y-search-input>

results matching ""

    No results matching ""