Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit a46f2a0

Browse files
committed
docs(textarea): add docs for angular.widget.textarea
1 parent 3217a24 commit a46f2a0

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/widget/input.js

+26-1
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,34 @@ angularWidget('input', function(inputElement){
831831
});
832832
}
833833
});
834-
835834
});
836835

836+
837+
/**
838+
* @ngdoc widget
839+
* @name angular.widget.textarea
840+
*
841+
* @description
842+
* HTML textarea element widget with angular data-binding. The data-binding and validation
843+
* properties of this element are exactly the same as those of the
844+
* {@link angular.widget.input input element}.
845+
*
846+
* @param {string} type Widget types as defined by {@link angular.inputType}. If the
847+
* type is in the format of `@ScopeType` then `ScopeType` is loaded from the
848+
* current scope, allowing quick definition of type.
849+
* @param {string} ng:model Assignable angular expression to data-bind to.
850+
* @param {string=} name Property name of the form under which the widgets is published.
851+
* @param {string=} required Sets `REQUIRED` validation error key if the value is not entered.
852+
* @param {number=} ng:minlength Sets `MINLENGTH` validation error key if the value is shorter than
853+
* minlength.
854+
* @param {number=} ng:maxlength Sets `MAXLENGTH` validation error key if the value is longer than
855+
* maxlength.
856+
* @param {string=} ng:pattern Sets `PATTERN` validation error key if the value does not match the
857+
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
858+
* patterns defined as scope expressions.
859+
* @param {string=} ng:change Angular expression to be executed when input changes due to user
860+
* interaction with the input element.
861+
*/
837862
angularWidget('textarea', angularWidget('input'));
838863

839864

0 commit comments

Comments
 (0)