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

Commit 09b1910

Browse files
author
Kamil Kisiela
committed
demo: add label
1 parent 2f15c2c commit 09b1910

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

demo/client/data/examples/label.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const { SetModule } = angular2now;
2+
3+
SetModule('demo').run(['Examples', 'Menu', (Examples, Menu) => {
4+
const fields = [];
5+
6+
fields.push({
7+
key: 'terms',
8+
type: 'switch',
9+
wrapper: ['label'],
10+
templateOptions: {
11+
label: 'Terms and conditions'
12+
}
13+
});
14+
15+
// set example
16+
Examples.set('label', {
17+
fields
18+
}, 'wrappers/label.md');
19+
20+
// add menu item to wrappers
21+
Menu.addChild('wrappers', 'label');
22+
}]);

0 commit comments

Comments
 (0)