14.0.0 • Published 4 months ago

@angular-mdl/select v14.0.0

Weekly downloads
811
License
MIT
Repository
github
Last release
4 months ago

Select

Installing

npm i --save @angular-mdl/popover @angular-mdl/select

import { MdlSelectModule } from '@angular-mdl/select';

If you need to support IE11 please add https://www.npmjs.com/package/custom-event-polyfill to your polyfills.

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

NameTypeDescription
[ngModel]anySelect data binding
[disabled]booleanWhether or not the select is disabled
[placeholder]stringPlaceholder text
[label]stringLabel text
[floating-label]anyIf present or true the label will be floating on focus event
[multiple]booleanMultiselect mode
[autocomplete]booleanAutocomplete mode
(blur)...on blur event
(change)...on change event

mdl-option

NameTypeDescription
[value]anyOption value
[disabled]booleanWhether or not the option is disabled
<content>stringOption label
14.0.0

4 months ago

13.0.0

11 months ago

12.0.0

1 year ago

11.0.0

2 years ago

10.0.1

2 years ago

10.0.0

2 years ago

9.0.0

3 years ago

8.0.0

3 years ago

8.0.0-beta.0

3 years ago

6.0.0

4 years ago

5.1.0

4 years ago

5.0.0

4 years ago

0.13.0

5 years ago

0.12.0

5 years ago

0.11.5

5 years ago

0.11.4

5 years ago

0.11.3

5 years ago

0.11.2

5 years ago

0.11.1

5 years ago

0.11.0

5 years ago

0.10.7

5 years ago

0.10.6

5 years ago

0.10.5

5 years ago

0.10.4

6 years ago

0.10.3

6 years ago

0.10.2

6 years ago

0.10.1

6 years ago