0.2.0 • Published 6 years ago

@jaspero/ng-select v0.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

Build Status NPM Version

NG2 Select

A select library for Angular, with single and multiple functionality.

npm install --save @jaspero/ng-select

A demo can be found here

Setup

Import JasperoSelectModule in your @NgModule:

@NgModule({
    imports: [
        JasperoSelectModule
    ],
    declarations: [AppComponent],
    bootstrap: [AppComponent]
})
export class AppModule {}

How To Use

To use the library simply add the component in your templates:

<jaspero-select></jaspero-select>

Options

You can pass the following inputs to the component:

NameTypeDescriptionDefault
optionsAn array of options for the select dropdownany[][]
keyThe key from the options object to be used as the name of the optionstringname
multiShould more options be selectable at oncebooleanfalse

This component also support template driven and reactive forms.