From 9c143325788f505200b5ebbc739cc6c2bbe14358 Mon Sep 17 00:00:00 2001 From: Kara Date: Wed, 8 Mar 2017 18:12:43 -0800 Subject: [PATCH] docs(select): add docs for static placeholder (#3519) --- src/lib/select/select.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/lib/select/select.md b/src/lib/select/select.md index 8ff4d404f6b0..3cce49f7397d 100644 --- a/src/lib/select/select.md +++ b/src/lib/select/select.md @@ -37,6 +37,19 @@ class MyComp { } ``` +### Setting a static placeholder + +It's possible to turn off the placeholder's floating animation using the `floatPlaceholder` property. It accepts one of three string options: +- `'auto'`: This is the default floating placeholder animation. It will float up when a selection is made. +- `'never'`: This makes the placeholder static. Rather than floating, it will disappear once a selection is made. +- `'always'`: This makes the placeholder permanently float above the input. It will not animate up or down. + +```html + + {{ state.name }} + +``` + #### Keyboard interaction: - DOWN_ARROW: Focus next option - UP_ARROW: Focus previous option