utils-ui-ng
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • 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 utils-ui-ng

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

123 kB

Total Files

20

Last publish

Collaborators

  • gurunadh552