0.0.20 • Published 2 years ago

batch-autocomplete-lib v0.0.20

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

BatchAutocompleteLib

This library was generated with Angular CLI version 9.1.13.

Installation

npm

npm install batch-autocomplete-lib

yarn

yarn install batch-autocomplete-lib

Integration

Step 1: Import the BatchAutocompleteLib:

import {BatchAutocompleteLibModule} from 'batch-autocomplete-lib';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';

@NgModule({
  declarations: [AppComponent],
  imports: [BatchAutocompleteLibModule.forRoot('DOMAIN_SERVER', 'BATCH_API_KEY')
],
  schemas: [
    CUSTOM_ELEMENTS_SCHEMA
  ]
})
export class AppModule {}

Step 2: Add into your component html file.

<bs-address-autocomplete
   (selected)='selectEvent($event)'
   (handleError)='handleError($event)'
   notFoundText='Not found data'
   placeholder='Enter your address'
   (suggestionList)='suggestionList($event)'>
</bs-address-autocomplete>

Step 3: Add into your component file so you can use below function.

class TestComponent {
 
  selectEvent(item: any) {
    // Do Your Exicution with data
    console.log('Selected item', item);
  }

  handleError(error: any){
    // Handle error as you want
    console.log(error);
  }

  suggestionList(data: any){
    // Suggestion list data
    console.log('suggestion list data', data);
  }
}
0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago