mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(textarea): add docs for angular.widget.textarea
This commit is contained in:
parent
3217a249e1
commit
a46f2a0db3
1 changed files with 26 additions and 1 deletions
|
|
@ -831,9 +831,34 @@ angularWidget('input', function(inputElement){
|
|||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* @ngdoc widget
|
||||
* @name angular.widget.textarea
|
||||
*
|
||||
* @description
|
||||
* HTML textarea element widget with angular data-binding. The data-binding and validation
|
||||
* properties of this element are exactly the same as those of the
|
||||
* {@link angular.widget.input input element}.
|
||||
*
|
||||
* @param {string} type Widget types as defined by {@link angular.inputType}. If the
|
||||
* type is in the format of `@ScopeType` then `ScopeType` is loaded from the
|
||||
* current scope, allowing quick definition of type.
|
||||
* @param {string} ng:model Assignable angular expression to data-bind to.
|
||||
* @param {string=} name Property name of the form under which the widgets is published.
|
||||
* @param {string=} required Sets `REQUIRED` validation error key if the value is not entered.
|
||||
* @param {number=} ng:minlength Sets `MINLENGTH` validation error key if the value is shorter than
|
||||
* minlength.
|
||||
* @param {number=} ng:maxlength Sets `MAXLENGTH` validation error key if the value is longer than
|
||||
* maxlength.
|
||||
* @param {string=} ng:pattern Sets `PATTERN` validation error key if the value does not match the
|
||||
* RegExp pattern expression. Expected value is `/regexp/` for inline patterns or `regexp` for
|
||||
* patterns defined as scope expressions.
|
||||
* @param {string=} ng:change Angular expression to be executed when input changes due to user
|
||||
* interaction with the input element.
|
||||
*/
|
||||
angularWidget('textarea', angularWidget('input'));
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue