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
Copy file name to clipboardExpand all lines: src/lib/input/README.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# mdInput
1
+
# mdInput / mdTextarea
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
5
6
6
7
7
## Notes
8
-
* The `<md-input>` component fully support two-way binding of `ngModel`, as if it was a normal `<input>`.
8
+
* The `<md-input>`/ `<md-textara>`component fully support two-way binding of `ngModel`, as if it was a normal `<input>` and `<textarea>`.
9
9
10
10
11
11
@@ -18,7 +18,7 @@ The valid `type` attribute values are any supported by your browser, with the ex
18
18
19
19
## Placeholder
20
20
21
-
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.
21
+
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.
22
22
23
23
You can set the `floatingPlaceholder` attribute to `false` to hide the indicative text instead when text is present in the input.
24
24
@@ -106,6 +106,14 @@ export class MyComponent implements OnInit {
106
106
}
107
107
```
108
108
109
+
## Textareas
110
+
111
+
```html
112
+
<md-textareaplaceholder="Textarea with autosize"></md-textarea>
113
+
```
114
+
115
+
### Example
116
+
109
117
## Full Forms
110
118
111
119
You can make a full form using inputs, and it will support autofill natively.
@@ -125,8 +133,8 @@ You can make a full form using inputs, and it will support autofill natively.
125
133
<td><md-inputplaceholder="Long Last Name That Will Be Truncated"style="width: 100%"></md-input></td>
0 commit comments