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) |
| 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=) |