iautocomplete
v0.0.10
Published
iAutoComplete library to auto fill by key
Downloads
5
Readme
Iautocomplete
This library was generated with Angular CLI version 10.0.14.
How to use
module.ts
import library in your root module.ts file
import { IautocompleteModule } from 'iautocomplete'
@NgModule({
declarations: [
...
],
imports: [
IautocompleteModule
],
providers: [ ... ],
bootstrap: [ ... ]
})
export class AppModule { }
component.html
<lib-iautocomplete
[(ngModel)]="value"
[config]="configData">
</lib-iautocomplete>
component.ts
import { Component } from '@angular/core';
...
export class AppComponent {
value: string = '1';
configData: any = null;
ngOnInit(): void {
this.configData = {
data: [{ value: '1', text: 'User' }, { value: '2', text: 'Normal' }],
className: 'class name if any', // optional
style: 'pass your style', // optional
isMultiselect: false, // optional
placeholder: 'No item available', // optional
tabIndex: 0 // optional
}
}
}
```
## Further help
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
```