oi-angular-select
TypeScript icon, indicating that this package has built-in type declarations

0.0.26 • Public • Published

AngularSelect (WIP)

Angular wrapper for base-select

Demo

https://tamtakoe.github.io/base-select

Install

npm install oi-angular-select

Using

...
import { FormsModule } from '@angular/forms';
import { AngularSelectModule } from 'oi-angular-select';

@NgModule({
  ...
  imports: [
    ..., AngularSelectModule
  ],
...

Example

<oi-angular-select [(ngModel)]="value"
             [models]="items"
             multiple
             size="sm"
             titlePlaceholder="Select..."
             trackField="value"
             searchField="name"></oi-angular-select>
export class AppComponent {
  items = [
    { name: 'one', value: 1 },
    { name: 'two', value: 2 },
    { name: 'three', value: 3 },
    { name: 'four', value: 4 },
    { name: 'five', value: 5 },
    { name: 'six', value: 6 },
    { name: 'seven', value: 7 },
    { name: 'eight', value: 8 },
    { name: 'nine', value: 9 },
    { name: 'ten', value: 10 }
  ];

  value = [];
}

Readme

Keywords

none

Package Sidebar

Install

npm i oi-angular-select

Weekly Downloads

6

Version

0.0.26

License

none

Unpacked Size

111 kB

Total Files

14

Last publish

Collaborators

  • tamtakoe