From 6ea49dadbf2367bb1580b27ef0b1144be4d6170f Mon Sep 17 00:00:00 2001 From: Philippe MARTIN Date: Mon, 17 Oct 2016 12:13:58 +0200 Subject: [PATCH] docs: document placeholder and floatingPlaceholder for md-input (#1485) --- src/lib/input/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/input/README.md b/src/lib/input/README.md index 54a7b37edde..38a5482869d 100644 --- a/src/lib/input/README.md +++ b/src/lib/input/README.md @@ -16,6 +16,14 @@ At the time of writing this README, the `[type]` attribute is copied to the actu The valid `type` attribute values are any supported by your browser, with the exception of `file`, `checkbox` and `radio`. File inputs aren't supported for now, while check boxes and radio buttons have their own components. +## Placeholder + +A placeholder is an indicative text displayed in the input zone when the input does not contain text. When text is present, the indicative text will float above this input zone. + +You can set the `floatingPlaceholder` attribute to `false` to hide the indicative text instead when text is present in the input. + +You can specify a placeholder for the input in one of two ways; either using the `placeholder` attribute, or using an `` directive in the ``. Using both will raise an error. + ## Prefix and Suffix