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

Commit 41b99d6

Browse files
author
Kamil Kisiela
committed
feat(datepicker): templateOptions.disabled
1 parent bdbe651 commit 41b99d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/types/datepicker/datepicker.js

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

0 commit comments

Comments
 (0)