You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(MdInput): README.md improvements and autofill support.
* Change the CSS to allow for autofill reactions; it works!
* Add a lot of examples and information to the README.md
* Add support for `warn` color to the labels.
Copy file name to clipboardExpand all lines: src/components/input/README.md
+83-4Lines changed: 83 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,10 @@
2
2
3
3
Inputs are the basic input component of Material 2. The spec can be found [here](https://www.google.com/design/spec/components/text-fields.html).
4
4
5
-
### Screenshots
5
+
6
+
7
+
## Notes
8
+
* The `<md-input>` component fully support two-way binding of `ngModel`, as if it was a normal `<input>`.
6
9
7
10
8
11
@@ -12,22 +15,27 @@ At the time of writing this README, the `[type]` attribute is copied to the actu
12
15
13
16
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.
14
17
18
+
19
+
15
20
## Prefix and Suffix
16
21
17
22
You can include HTML before, and after the input tag, as prefix or suffix. It will be underlined as per the Material specification, and clicking it will focus the input.
18
23
19
24
To add a prefix, use the `md-prefix` attribute on the element. Similarly, to add a suffix, use the `md-suffix` attribute. For example, in a template:
The divider (line under the <md-input> content) color can be changed by using the `dividerColor` attribute. A value of `primary` is the default and will correspond to your theme primary color. Alternatively, you can specify `accent` or `warn`.
68
+
69
+
#### Example
70
+
71
+
^((please not that this example has been doctored to show the colors; they would normally show only on focus)^)
0 commit comments