core/search/search.model.ts
Please don't use the search factory. It will be refactored soon.
The search is an icon that appears on the upper right corner and opens a template or a search bar on click on it.
Properties |
Methods |
onSearch | ||||||
onSearch(term)
|
||||||
A function triggers if the user performance a search.
Parameters :
Returns :
any
|
icon |
icon:
|
Type : string
|
Optional |
The icon for the search. Defaults to the search icon. (optional) |
injector |
injector:
|
Type : Injector
|
Optional |
Used to load the providers for the components. If not provided, default injector us used. |
name |
Needed for upgrade only. |
name:
|
Type : string
|
Optional |
The name of the search |
priority |
priority:
|
Type : number
|
Optional |
Ordering of the actions (high number first) (optional) |
template |
template:
|
Type : any
|
Optional |
Angular template used for Content Projection (optional) |
term |
term:
|
Type : string
|
Optional |
The default search term. Defaults to an empty string (optional=) |