1.0.7 • Published 5 years ago

ng6-combobox v1.0.7

Weekly downloads
177
License
MIT
Repository
github
Last release
5 years ago

ng6-combobox

A simple combobox component built for Angular 6 reactive forms and Bootstrap 4

Installation

npm install ng6-combobox

In your ngModule

import { Ng6Module } from 'ng6-combobox';
@NgModule({  
  imports: [    
    Ng6Module
})

Selector

ng6-combo-box

Inputs

AttributeTypeDescription
dataObject[]The data list of pre-defined options
propertyNamestringThe name of the property in the data array used to display in the dropdown
buttonClassstringThe class to use for the button group (ex. 'fa fa-angle-down')
placeholderstringThe input placeholder

Outputs

AttributeDescription
selectItemFires when an item is selected by mouse click. The payload is the value of the item selected
textChangeFires when text is manually entered by keystroke. The payload is the value of the text in the input
<ng6-combo-box [data]="dataList"
               [propertyName]="'name'"
               formControlName="formControl"
               (selectItem)="onSelected($event)"
               (textChange)="onTextChange($event)"></ng6-combo-box>
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago