@ng2select/bootstrap
TypeScript icon, indicating that this package has built-in type declarations

0.2.9 • Public • Published

Build Status

beta

general-purpose angular2 bootstrap select/multiselect directive module

http://ng2select.github.io/bootstrap/

bootstrap-single-select

            <ix-bootstrap-select (change)="onChange($event)" [(ngModel)]="ngModel">
                <li *ngFor="let option of options | async" [value]="option.id" [title]="option.name">
                    <img [src]="option.gravatarSrc" height="20" width="20" />
                    <span>{{option.name}}</span>
                </li>
            </ix-bootstrap-select>

            <span class="red">{{ngModel | json}}</span>

            <ix-bootstrap-select (change)="onChange($event)" [(ngModel)]="ngModel">
                <li *ngFor="let option of options | async" [value]="option.id" [title]="option.name">
                    <span>{{option.name}}</span>
                </li>
            </ix-bootstrap-select>

            <span class="red">{{ngModel | json}}</span>

bootstrap-multiselect

            <ix-bootstrap-select (change)="onChange($event)" [(ngModel)]="ngModelAry" multiple>
                <li *ngFor="let option of options | async" [value]="option.id" [title]="option.name">
                    <img [src]="option.gravatarSrc" height="20" width="20" />
                    <span>{{option.name}}</span>
                </li>
            </ix-bootstrap-select>

            <span class="red">{{ngModelAry | json}}</span>

            <ix-bootstrap-select (change)="onChange($event)" [(ngModel)]="ngModelAry" multiple>
                <li *ngFor="let option of options | async" [value]="option.id" [title]="option.name">
                    <span>{{option.name}}</span>
                </li>
            </ix-bootstrap-select>

            <span class="red">{{ngModelAry | json}}</span>

https://angular.io

Readme

Keywords

none

Package Sidebar

Install

npm i @ng2select/bootstrap

Weekly Downloads

7

Version

0.2.9

License

MIT

Last publish

Collaborators

  • ng2select