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

Commit

Permalink
add a property to not validate as you type
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Aug 22, 2014
1 parent 5fc8c49 commit cb9a052
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* ----------
*
* core-input can optionally validate the value using the HTML5 constraints API,
* similar to native inputs. There are two methods to enable input validation:
* similar to native inputs. There are two methods to configure input validation:
*
* 1. By setting the `type` attribute. For example, setting it to `email` will
* check the value is a valid email, and setting it to `number` will check
Expand Down Expand Up @@ -263,7 +263,16 @@
* @type boolean
* @default false
*/
invalid: false
invalid: false,

/**
* If this property is true, validate the input as they are entered.
*
* @attribute validateImmediately
* @type boolean
* @default true
*/
validateImmediately: true
},

ready: function() {
Expand Down

0 comments on commit cb9a052

Please sign in to comment.