aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget/input.js
diff options
context:
space:
mode:
authorIgor Minar2011-10-12 11:49:42 -0700
committerIgor Minar2011-10-12 11:49:42 -0700
commita4b45397e006c86000af55e389084418f88b65c3 (patch)
treee27776d7e1f9fa7cf5c6133842189b11c3cd742f /src/widget/input.js
parentde4e06ed7354020d0edcd0314174fbaf15164801 (diff)
downloadangular.js-a4b45397e006c86000af55e389084418f88b65c3.tar.bz2
docs(forms): add ng:change docs and other fixes
Diffstat (limited to 'src/widget/input.js')
-rw-r--r--src/widget/input.js22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/widget/input.js b/src/widget/input.js
index 18d1ae12..a4f04e57 100644
--- a/src/widget/input.js
+++ b/src/widget/input.js
@@ -20,6 +20,8 @@ var INTEGER_REGEXP = /^\s*(\-|\+)?\d+\s*$/;
* @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.
*
* @example
<doc:example>
@@ -150,6 +152,8 @@ angularInputType('email', function() {
* @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.
*
* @example
<doc:example>
@@ -217,6 +221,8 @@ angularInputType('url', function() {
* @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.
*
* @example
<doc:example>
@@ -290,6 +296,8 @@ angularInputType('list', function() {
* @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.
*
* @example
<doc:example>
@@ -354,6 +362,8 @@ angularInputType('number', numericRegexpInputType(NUMBER_REGEXP, 'NUMBER'));
* @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.
*
* @example
<doc:example>
@@ -413,6 +423,8 @@ angularInputType('integer', numericRegexpInputType(INTEGER_REGEXP, 'INTEGER'));
* @param {string=} name Property name of the form under which the widgets is published.
* @param {string=} true-value The value to which the expression should be set when selected.
* @param {string=} false-value The value to which the expression should be set when not selected.
+ * @param {string=} ng:change Angular expression to be executed when input changes due to user
+ * interaction with the input element.
*
* @example
<doc:example>
@@ -480,11 +492,13 @@ angularInputType('checkbox', function(inputElement) {
* @name angular.inputType.radio
*
* @description
- * HTML radio.
+ * HTML radio button.
*
* @param {string} ng:model Assignable angular expression to data-bind to.
* @param {string} value The value to which the expression should be set when selected.
* @param {string=} name Property name of the form under which the widgets is published.
+ * @param {string=} ng:change Angular expression to be executed when input changes due to user
+ * interaction with the input element.
*
* @example
<doc:example>
@@ -585,8 +599,8 @@ var HTML5_INPUTS_TYPES = makeMap(
* HTML input element widget with angular data-binding. Input widget follows HTML5 input types
* and polyfills the HTML5 validation behavior for older browsers.
*
- * The {@link angular.inputType custom angular.inputType}s provides a short hand for declaring new
- * inputs. This is a shart hand for text-box based inputs, and there is no need to go through the
+ * The {@link angular.inputType custom angular.inputType}s provide a shorthand for declaring new
+ * inputs. This is a sharthand for text-box based inputs, and there is no need to go through the
* full {@link angular.service.$formFactory $formFactory} widget lifecycle.
*
*
@@ -599,6 +613,8 @@ var HTML5_INPUTS_TYPES = makeMap(
* @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.
*
* @example
<doc:example>