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

Commit afb9e00

Browse files
author
Kamil Kisiela
committed
demo: add chips
1 parent 3424a32 commit afb9e00

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

demo/client/data/examples/chips.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const { SetModule } = angular2now;
2+
3+
SetModule('demo').run(['Examples', 'Menu', (Examples, Menu) => {
4+
const fields = [];
5+
6+
fields.push({
7+
type: 'chips',
8+
key: 'tags',
9+
templateOptions: {
10+
placeholder: '+tags',
11+
secondaryPlaceholder: 'Add tag',
12+
deleteButtonLabel: 'Remove',
13+
deleteHint: 'Remove tag'
14+
}
15+
});
16+
17+
// set example
18+
Examples.set('chips', {
19+
fields
20+
}, 'types/chips.md');
21+
22+
// add menu item to types
23+
Menu.addChild('types', 'chips');
24+
}]);

0 commit comments

Comments
 (0)