File

core/search/search.model.ts

Deprecated

Please don't use the search factory. It will be refactored soon.

Description

The search is an icon that appears on the upper right corner and opens a template or a search bar on click on it.

Index

Properties
Methods

Methods

onSearch
onSearch(term)

A function triggers if the user performance a search.

Parameters :
Name Optional Description
term No

The term used by the user.

Returns : any

Properties

icon
icon: string
Type : string
Optional

The icon for the search. Defaults to the search icon. (optional)

injector
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: string
Type : string
Optional

The name of the search

priority
priority: number
Type : number
Optional

Ordering of the actions (high number first) (optional)

template
template: any
Type : any
Optional

Angular template used for Content Projection (optional)

term
term: string
Type : string
Optional

The default search term. Defaults to an empty string (optional=)

results matching ""

    No results matching ""