Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 67391b8

Browse files
author
Kamil Kisiela
committed
docs(textarea): add grow option
1 parent fc1043e commit 67391b8

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

docs/types/textarea.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,36 @@
1-
# textarea
2-
## textarea
1+
textarea
2+
========
3+
4+
textarea
5+
--------
36

47
### Example
58

69
```javascript
710
{
8-
"type": "textarea",
9-
"key": "bio",
10-
"templateOptions": {
11-
"label": "Biography",
12-
"theme": "custom",
13-
"rows": 5
11+
type: "textarea",
12+
key: "bio",
13+
templateOptions: {
14+
label: "Biography",
15+
theme: "custom",
16+
rows: 5,
17+
grow: false
1418
}
1519
}
1620
```
1721

1822
#### Configuration
1923

20-
#### templateOptions.label _: string_
24+
#### templateOptions.label *: string*
25+
26+
#### templateOptions.theme *: string*
27+
28+
#### templateOptions.rows *: integer*
29+
30+
Number of rows
2131

22-
#### templateOptions.theme _: string_
32+
#### templateOptions.grow *: boolean (default true)*
2333

24-
#### templateOptions.rows _: integer_
34+
Equivalent to md-no-autogrow
2535

26-
Number of rows
36+
When present, textareas will not grow automatically.

0 commit comments

Comments
 (0)