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

Commit e8cc203

Browse files
author
Kamil Kisiela
committed
Add checkbox with basic functionality
1 parent 3edd5b0 commit e8cc203

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

lib/client/types/checkbox/checkbox.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var {SetModule} = angular2now;
2+
3+
SetModule('formlyMaterial')
4+
.config((formlyConfigProvider, formlyMaterialProvider) => {
5+
6+
formlyConfigProvider.setType({
7+
name: 'checkbox',
8+
templateUrl: formlyMaterialProvider.templateUrl('lib/client/types/checkbox/checkbox.ng.html')
9+
});
10+
11+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<div>
2+
<md-checkbox ng-model="model[options.key]">
3+
{{to.label}}
4+
</md-checkbox>
5+
</div>

package.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ Package.onUse(function (api) {
5454

5555
// input
5656
'lib/client/types/input/input.js',
57-
'lib/client/types/input/input.ng.html'
57+
'lib/client/types/input/input.ng.html',
58+
59+
// checkbox
60+
'lib/client/types/checkbox/checkbox.js',
61+
'lib/client/types/checkbox/checkbox.ng.html'
5862

5963
], client);
6064

0 commit comments

Comments
 (0)