0.0.2 • Published 1 year ago

v2-iosense-lib v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

V2 Search Library

Search UI For Angular Projects Based on Material

Features

  • Three Different Types of Search
    1. Plain Search (which return string search by user)
    2. Multiple Search (Which return Search Object with key searchTerms and array of search terms.)
    3. 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>
PropertyOptions
placeholderIt accepts string and used for placeholder for search Example : placeholder="Search Text"
multipleit accepts either true or false. Based on it search type is changed
hintIt accepts string and used for hint for search Example : hint="Search Hint"
categoriesIt accepts array of objects with keys name and value Example : [categories] ="[{name:'name',value:'1'},{name:'name2',value:'2'}]"
onSearchChangeIt is output emitter for getting the result from the Search
0.0.2

1 year ago

0.0.1

1 year ago