From e84365c93d76b3cbe94039d1719620aee606dcc3 Mon Sep 17 00:00:00 2001 From: Ales Rechtorik Date: Fri, 21 Oct 2016 23:49:46 +0200 Subject: [PATCH 01/15] add textarea --- src/demo-app/input/input-demo.html | 36 ++++++++++++++++++-- src/lib/input/README.md | 21 +++++++++--- src/lib/input/input.html | 33 ++++++++++++++++++ src/lib/input/input.scss | 6 +++- src/lib/input/input.ts | 54 ++++++++++++++++++++++++++++-- 5 files changed, 139 insertions(+), 11 deletions(-) diff --git a/src/demo-app/input/input-demo.html b/src/demo-app/input/input-demo.html index bd79e8ccf017..4184cf12f50e 100644 --- a/src/demo-app/input/input-demo.html +++ b/src/demo-app/input/input-demo.html @@ -10,8 +10,8 @@

- - + +

@@ -39,15 +39,23 @@ Divider Colors +

Input

+ +

Textarea

+ + + +
Hints +

Input

{{characterCountHintExample.characterCount}} / 100

+ +

Textarea

+

+ + {{characterCountHintExample.characterCount}} / 100 + +

+ + Expanding textarea + +

+ + +

+
+
+ + Hello , diff --git a/src/lib/input/README.md b/src/lib/input/README.md index 81eaa2dbf22c..3b8bee2f2928 100644 --- a/src/lib/input/README.md +++ b/src/lib/input/README.md @@ -1,11 +1,11 @@ -# mdInput +# mdInput / mdTextarea 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). ## Notes -* The `` component fully support two-way binding of `ngModel`, as if it was a normal ``. +* The `` / `` component fully support two-way binding of `ngModel`, as if it was a normal `` and ` + +