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

Commit 27d1d2a

Browse files
author
Kamil Kisiela
committed
feat(slider): templateOptions.disabled
1 parent 2bb10e0 commit 27d1d2a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/types/slider/slider.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ export default (formlyConfigProvider) => {
66
name: 'slider',
77
wrapper: ['label'],
88
defaultOptions: {
9+
templateOptions: {
10+
disabled: false
11+
},
912
ngModelAttrs: {
13+
disabled: {
14+
bound: 'ng-disabled'
15+
},
1016
min: {
1117
attribute: 'min'
1218
},
@@ -23,6 +29,7 @@ export default (formlyConfigProvider) => {
2329
},
2430
apiCheck: (check) => ({
2531
templateOptions: {
32+
disabled: check.bool.optional,
2633
min: check.number.optional,
2734
max: check.number.optional,
2835
step: check.number.optional,

0 commit comments

Comments
 (0)