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

Commit 3424a32

Browse files
author
Kamil Kisiela
committed
demo: add checkbox
1 parent d920b7d commit 3424a32

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

demo/client/data/examples/checkbox.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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: 'checkbox',
9+
templateOptions: {
10+
label: 'Terms and Conditions'
11+
}
12+
});
13+
14+
// set example
15+
Examples.set('checkbox', {
16+
fields
17+
}, 'types/checkbox.md');
18+
19+
// add menu item to types
20+
Menu.addChild('types', 'checkbox');
21+
}]);

0 commit comments

Comments
 (0)