This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +50
-15
lines changed Expand file tree Collapse file tree 6 files changed +50
-15
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ 0.1.0] - 2015-11-17
6
+ ### Added
7
+ - Support for md-select with valueProp and labelProp
8
+ - Support for md-radio with valueProp and labelProp options
9
+
5
10
## [ 0.0.4] - 2015-11-13
6
11
### Removed
7
12
- es5-shim package
@@ -26,6 +31,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
26
31
27
32
## 0.0.1 - 2015-11-06
28
33
29
- [ 0.0.4 ] : https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.3.0...v0.0.4
34
+ [ 0.1.0 ] : https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.4...v0.1.0
35
+ [ 0.0.4 ] : https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.3...v0.0.4
30
36
[ 0.0.3 ] : https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.2...v0.0.3
31
37
[ 0.0.2 ] : https://github.com/kamilkisiela/meteor-angular-formly-templates-material/compare/v0.0.1...v0.0.2
Original file line number Diff line number Diff line change 1
1
FormlyMaterial
2
2
==========
3
3
4
+ [ ![ GitHub version] ( https://badge.fury.io/gh/wieldo%2Fangular-formly-templates-material.svg )] ( https://badge.fury.io/gh/wieldo%2Fangular-formly-templates-material )
5
+ [ ![ Codacy Badge] ( https://api.codacy.com/project/badge/grade/a2cd4c7c2d74467281e309a65be49e8f )] ( https://www.codacy.com/app/mys-sterowiec/angular-formly-templates-material )
6
+
4
7
Material Design Templates for [ Angular-Formly] ( http://angular-formly.com ) . Modern & flexible forms configured easily in a JSON object.
5
8
6
9
## Add Angular Formly
@@ -27,13 +30,13 @@ angular.module('myAppName', [
27
30
```
28
31
29
32
# Components
30
-
31
33
_ rest of angular-material directive in near future_
32
34
33
35
## Fields
34
36
35
37
- input
36
38
- checkbox
39
+ - select
37
40
38
41
## Wrappers
39
42
@@ -42,12 +45,16 @@ _rest of angular-material directive in near future_
42
45
- ngMessages
43
46
44
47
## Roadmap
45
- - add md-chips
46
- - add md-datepicker
47
- - add md-icon wrapper
48
- - add md-radio-button and md-radio-group
49
- - add md-select
50
- - e2e tests
51
- - Requests (?). Post an issue.
52
-
53
- [ ![ Bitdeli Badge] ( https://d2weczhvl823v0.cloudfront.net/wieldo/angular-formly-templates-material/trend.png )] ( https://bitdeli.com/free " Bitdeli Badge ")
48
+
49
+ - [ ] add md-chips
50
+ - [ ] add md-datepicker
51
+ - [ ] add md-icon wrapper
52
+ - [ ] add md-radio-button and md-radio-group
53
+ - [x] add md-select
54
+ - [ ] add groups to md-select
55
+ - [x] add valueProp, labelProp to md-select
56
+ - [x] add md-radio with valueProp and labelProp
57
+ - [ ] add groupProp to md-radio
58
+ - [ ] e2e tests
59
+
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 1
1
< md-select ng-model ="model[options.key] ">
2
- < md-option ng-repeat ="item in to.options " value ="{{ item.value }} ">
3
- {{ item. name }}
2
+ < md-option ng-repeat ="option in to.options " ng- value ="option[to.valueProp || 'value'] ">
3
+ {{ option[to.labelProp || ' name'] }}
4
4
</ md-option >
5
5
</ md-select >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var server = 'server';
5
5
Package . describe ( {
6
6
name : "wieldo:angular-formly-templates-material" ,
7
7
summary : "Material design templates for angular-formly" ,
8
- version : "0.0.4 " ,
8
+ version : "0.1.0 " ,
9
9
10
10
documentation : 'README.md' ,
11
11
git : 'https://github.com/wieldo/angular-formly-templates-material.git'
@@ -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