0.10.3 • Published 9 years ago
@angular2-mdl-ext/select v0.10.3
Select
Installing
npm i --save @angular2-mdl-ext/popover @angular2-mdl-ext/select
import { MdlSelectModule } from '@angular2-mdl-ext/select';Usage example
<mdl-select [(ngModel)]="personId">
<mdl-option *ngFor="let p of people" [value]="p.id">{{p.name}}</mdl-option>
</mdl-select>using placeholder
<mdl-select placeholder="Person Name" [(ngModel)]="personId">
<mdl-option *ngFor="let p of people" [value]="p.id">{{p.name}}</mdl-option>
</mdl-select>using label with floating label
<mdl-select label="{{personLabel}}" floating-label [(ngModel)]="personId">
<mdl-option *ngFor="let p of people" [value]="p.id">{{p.name}}</mdl-option>
</mdl-select>API Summary
mdl-select
| Name | Type | Description |
|---|---|---|
[ngModel] | any | Select data binding |
[disabled] | boolean | Whether or not the select is disabled |
[placeholder] | string | Placeholder text |
[label] | string | Label text |
[floating-label] | any | If present or true the label will be floating on focus event |
[multiple] | boolean | Multiselect mode |
mdl-option
| Name | Type | Description |
|---|---|---|
[value] | any | Option value |
<content> | string | Option label |
0.10.3
9 years ago
0.10.2
9 years ago
0.10.1
9 years ago
0.10.0
9 years ago
0.9.2
9 years ago
0.9.1
9 years ago
0.9.0
9 years ago
0.8.2
9 years ago
0.8.1
9 years ago
0.8.0
9 years ago
0.7.1
9 years ago
0.7.0
9 years ago
0.6.0
9 years ago
0.5.0
9 years ago
0.4.2
9 years ago
0.4.1
9 years ago
0.4.0
9 years ago
0.3.0
9 years ago
0.2.4
10 years ago
0.2.3
10 years ago
0.2.2
10 years ago
0.2.1
10 years ago
0.2.0
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago
0.0.2
10 years ago
0.0.1
10 years ago