File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,19 @@ class MyComp {
37
37
}
38
38
```
39
39
40
+ ### Setting a static placeholder
41
+
42
+ It's possible to turn off the placeholder's floating animation using the ` floatPlaceholder ` property. It accepts one of three string options:
43
+ - ` 'auto' ` : This is the default floating placeholder animation. It will float up when a selection is made.
44
+ - ` 'never' ` : This makes the placeholder static. Rather than floating, it will disappear once a selection is made.
45
+ - ` 'always' ` : This makes the placeholder permanently float above the input. It will not animate up or down.
46
+
47
+ ``` html
48
+ <md-select placeholder =" State" [(ngModel)] =" myState" floatPlaceholder =" never" >
49
+ <md-option *ngFor =" let state of states" [value] =" state.code" >{{ state.name }}</md-option >
50
+ </md-select >
51
+ ```
52
+
40
53
#### Keyboard interaction:
41
54
- <kbd >DOWN_ARROW</kbd >: Focus next option
42
55
- <kbd >UP_ARROW</kbd >: Focus previous option
You can’t perform that action at this time.
0 commit comments