This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Expand file tree Collapse file tree 3 files changed +44
-1
lines changed 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 : 'slider' ,
8
+ templateUrl : formlyMaterialProvider . templateUrl ( 'lib/client/types/slider/slider.ng.html' ) ,
9
+ defaultOptions : {
10
+ ngModelAttrs : {
11
+ min : {
12
+ bound : 'min' ,
13
+ attribute : 'min'
14
+ } ,
15
+ max : {
16
+ bound : 'max' ,
17
+ attribute : 'max'
18
+ } ,
19
+ step : {
20
+ bound : 'step' ,
21
+ attribute : 'step'
22
+ } ,
23
+ discrete : {
24
+ bound : 'md-discrete'
25
+ }
26
+ }
27
+ } ,
28
+ apiCheck : ( check ) => ( {
29
+ templateOptions : {
30
+ min : check . number . optional ,
31
+ max : check . number . optional ,
32
+ step : check . number . optional ,
33
+ discrete : check . bool . optional
34
+ }
35
+ } )
36
+ } ) ;
37
+
38
+ } ) ;
Original file line number Diff line number Diff line change
1
+ < md-slider ng-model ="model[options.key] "> </ md-slider >
Original file line number Diff line number Diff line change @@ -92,7 +92,11 @@ Package.onUse(function (api) {
92
92
93
93
// chips
94
94
'lib/client/types/chips/chips.js' ,
95
- 'lib/client/types/chips/chips.ng.html'
95
+ 'lib/client/types/chips/chips.ng.html' ,
96
+
97
+ // slider
98
+ 'lib/client/types/slider/slider.js' ,
99
+ 'lib/client/types/slider/slider.ng.html'
96
100
97
101
] , client ) ;
98
102
You can’t perform that action at this time.
0 commit comments