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

Commit 2b528c3

Browse files
author
Kamil Kisiela
committed
feat(input): templateOptions.disabled
1 parent 41b99d6 commit 2b528c3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/types/input/input.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ export default (formlyConfigProvider) => {
88
wrapper: ['label', 'messages', 'inputContainer'],
99
defaultOptions: {
1010
templateOptions: {
11-
type: 'text'
11+
type: 'text',
12+
disabled: false
1213
},
1314
ngModelAttrs: {
1415
mdMaxlength: {
1516
bound: 'md-maxlength'
1617
},
18+
disabled: {
19+
bound: 'ng-disabled'
20+
},
1721
pattern: {
1822
bound: 'ng-pattern'
1923
}
@@ -22,6 +26,7 @@ export default (formlyConfigProvider) => {
2226
apiCheck: (check) => {
2327
return {
2428
templateOptions: {
29+
disabled: check.bool.optional,
2530
type: check.string,
2631
step: check.number.optional,
2732
pattern: check.oneOfType([

0 commit comments

Comments
 (0)