0.0.2 • Published 1 year ago
v2-iosense-lib v0.0.2
V2 Search Library
Search UI For Angular Projects Based on Material
Features
- 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.)
Installation
npm install --save v2-iosense-lib
Usage
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 |