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

Commit a132232

Browse files
author
Kamil Kisiela
committed
demo(textarea): add grow option
1 parent 3ad7786 commit a132232

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

demo/client/data/examples/textarea.js

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
const { SetModule } = angular2now;
22

33
SetModule('demo').run(['Examples', 'Menu', (Examples, Menu) => {
4+
const fields = [];
5+
6+
fields.push({
7+
key: 'text-grow',
8+
type: 'textarea',
9+
templateOptions: {
10+
label: 'Growing textarea'
11+
}
12+
});
13+
14+
fields.push({
15+
key: 'text-notgrow',
16+
type: 'textarea',
17+
templateOptions: {
18+
label: 'Not growing textarea',
19+
grow: false
20+
}
21+
});
22+
423
// set example
524
Examples.set('textarea', {
6-
fields: [{
7-
key: 'text',
8-
type: 'textarea',
9-
templateOptions: {
10-
label: 'Text'
11-
}
12-
}]
25+
fields
1326
}, 'types/textarea.md');
1427

1528
// add menu item to types

0 commit comments

Comments
 (0)