This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +28
-3
lines changed Expand file tree Collapse file tree 5 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
## [ Unreleased]
6
6
### Added
7
7
- Support for md-select
8
+ - Support for md-radio with valueProp and labelProp options
8
9
9
10
## [ 0.0.4] - 2015-11-13
10
11
### Removed
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ angular.module('myAppName', [
30
30
```
31
31
32
32
# Components
33
-
34
33
_ rest of angular-material directive in near future_
35
34
36
35
## Fields
@@ -46,13 +45,16 @@ _rest of angular-material directive in near future_
46
45
- ngMessages
47
46
48
47
## Roadmap
48
+
49
49
- [ ] add md-chips
50
50
- [ ] add md-datepicker
51
51
- [ ] add md-icon wrapper
52
52
- [ ] add md-radio-button and md-radio-group
53
53
- [x] add md-select
54
54
- [ ] add groups to md-select
55
- - [ ] add roupProp, valueProp, labelProp to md-select
55
+ - [ ] add groupProp, valueProp, labelProp to md-select
56
+ - [x] add md-radio with valueProp and labelProp
57
+ - [ ] add groupProp to md-radio
56
58
- [ ] e2e tests
57
59
58
60
Requests (?). Post an issue.
Original file line number Diff line number Diff line change
1
+ var { SetModule} = angular2now ;
2
+
3
+ SetModule ( 'formlyMaterial' )
4
+ . config ( ( formlyConfigProvider , formlyMaterialProvider ) => {
5
+
6
+ formlyConfigProvider . setType ( {
7
+ name : 'radio' ,
8
+ templateUrl : formlyMaterialProvider . templateUrl ( 'lib/client/types/radio/radio.ng.html' )
9
+ } ) ;
10
+
11
+ } ) ;
Original file line number Diff line number Diff line change
1
+ < md-radio-group ng-model ="model[options.key] ">
2
+ < md-radio-button
3
+ ng-repeat ="option in to.options "
4
+ ng-value ="option[to.valueProp || 'value'] ">
5
+ {{option[to.labelProp || 'name']}}
6
+ </ md-radio-button >
7
+ </ md-radio-group >
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ Package.onUse(function (api) {
69
69
70
70
// select
71
71
'lib/client/types/select/select.js' ,
72
- 'lib/client/types/select/select.ng.html'
72
+ 'lib/client/types/select/select.ng.html' ,
73
+
74
+ // radio
75
+ 'lib/client/types/radio/radio.js' ,
76
+ 'lib/client/types/radio/radio.ng.html'
73
77
74
78
] , client ) ;
75
79
You can’t perform that action at this time.
0 commit comments