- Three Different Types of Search
- Plain Search (which return string search by user)
- Multiple Search (Which return Search Object with key searchTerms and array of search terms.)
- Search With Category (Which return Search Object with key searchTerms,category and array of search terms along with category.)
npm install --save v2-iosense-lib
Import SearchComponent
into your app's modules:
import { SearchComponent } from 'v2-iosense-lib';
@NgModule({
imports: [
SearchComponent
]
})
In Component.html
<search [options]></search>
Property | Options |
---|---|
placeholder | It accepts string and used for placeholder for search Example : placeholder="Search Text"
|
multiple | it accepts either true or false. Based on it search type is changed |
hint | It accepts string and used for hint for search Example : hint="Search Hint"
|
categories | It accepts array of objects with keys name and value Example : [categories] ="[{name:'name',value:'1'},{name:'name2',value:'2'}]"
|
onSearchChange | It is output emitter for getting the result from the Search |