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

Commit

Permalink
feat(textarea): templateOptions.disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamil Kisiela committed Jan 12, 2016
1 parent 7c1865c commit 858f9fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/types/textarea/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export default (formlyConfigProvider) => {
wrapper: ['label', 'messages', 'inputContainer'],
defaultOptions: {
ngModelAttrs: {
disabled: {
bound: 'ng-disabled'
},
rows: {
attribute: 'rows'
},
Expand All @@ -21,6 +24,7 @@ export default (formlyConfigProvider) => {
},
apiCheck: (check) => ({
templateOptions: {
disabled: check.bool.optional,
rows: check.number.optional,
cols: check.number.optional,
grow: check.bool.optional
Expand Down

0 comments on commit 858f9fa

Please sign in to comment.