v2-iosense-lib
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i v2-iosense-lib

Weekly Downloads

19

Version

0.0.2

License

none

Unpacked Size

140 kB

Total Files

21

Last publish

Collaborators

  • gurunadh552