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

feat: allow specification of maxlength from textarea element #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dist/formly-material.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,9 @@ return /******/ (function(modules) { // webpackBootstrap
},
cols: {
attribute: 'cols'
},
maxlength: {
attribute: 'md-maxlength'
}
},
templateOptions: {
Expand Down Expand Up @@ -984,4 +987,4 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ }
/******/ ])
});
;
;
5 changes: 5 additions & 0 deletions docs/types/textarea.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ textarea

#### templateOptions.className _: string | expression | array_

#### templateOptions.maxlength *: integer*

The maximum number of characters allowed in this input. If this is specified, a character counter will be shown underneath the input.
Equivalent to md-maxlength

#### templateOptions.rows *: integer*

Number of rows
Expand Down
3 changes: 3 additions & 0 deletions src/types/textarea/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default (formlyConfigProvider) => {
},
cols: {
attribute: 'cols'
},
maxlength: {
attribute: 'md-maxlength'
}
},
templateOptions: {
Expand Down