{"bugs":{"url":"https://github.com/PolymerElements/iron-validatable-behavior/issues"},"dist":{"shasum":"f453e4f4070d749b1838ec9283f0ac3e053f29b5","tarball":"https://registry.npmjs.org/@polymer/iron-validatable-behavior/-/iron-validatable-behavior-3.0.0-pre.10.tgz","fileCount":13,"integrity":"sha512-M9KG1u/AASAZFbm1YE+ZyTqDlI73MXhSdIK+7daqnTnvwDU94AtMkJVzgSl0DxSJ/FwRKWde8eVus5k+DVBJpw==","signatures":[{"sig":"MEQCIFlPKMqqvVLy7vEGgOHGcDZx0Zch40fUUMSOeXTRm6J+AiAz+MKUrWacZh7453BfIekw+/8gRpm3iK+8bmfQG7dVZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22258},"flat":true,"main":"iron-validatable-behavior.html","name":"@polymer/iron-validatable-behavior","readme":"\n<!---\n\nThis README is automatically generated from the comments in these files:\niron-validatable-behavior.html\n\nEdit those files, and our readme bot will duplicate them over here!\nEdit this file, and the bot will squash your changes :)\n\nThe bot does some handling of markdown. Please file a bug if it does the wrong\nthing! https://github.com/PolymerLabs/tedium/issues\n\n-->\n\n[![Build status](https://travis-ci.org/PolymerElements/iron-validatable-behavior.svg?branch=master)](https://travis-ci.org/PolymerElements/iron-validatable-behavior)\n\n_[Demo and API docs](https://elements.polymer-project.org/elements/iron-validatable-behavior)_\n\n\n## Polymer.IronValidatableBehavior\n\n`Use Polymer.IronValidatableBehavior` to implement an element that validates user input.\nUse the related `Polymer.IronValidatorBehavior` to add custom validation logic to an iron-input.\n\nBy default, an `<iron-form>` element validates its fields when the user presses the submit button.\nTo validate a form imperatively, call the form's `validate()` method, which in turn will\ncall `validate()` on all its children. By using `Polymer.IronValidatableBehavior`, your\ncustom element will get a public `validate()`, which\nwill return the validity of the element, and a corresponding `invalid` attribute,\nwhich can be used for styling.\n\nTo implement the custom validation logic of your element, you must override\nthe protected `_getValidity()` method of this behaviour, rather than `validate()`.\nSee [this](https://github.com/PolymerElements/iron-form/blob/master/demo/simple-element.html)\nfor an example.\n\n### Changes in 2.0\n- `validate()` no longer requires a `value` parameter to be passed, and will use the element's `value` property if it exists\n- `validatorType` and `validatorName` were unused and have been removed\n\n### Accessibility\n\nChanging the `invalid` property, either manually or by calling `validate()` will update the\n`aria-invalid` attribute.\n\n\n","gitHead":"88b6f39f63aa1d4ba559175b64ffa05961178b91","license":"BSD-3-Clause","_npmUser":{"name":"polymer","email":"admin@polymer-project.org"},"homepage":"https://github.com/PolymerElements/iron-validatable-behavior","keywords":["web-components","polymer","iron","behavior"],"repository":{"url":"git://github.com/PolymerElements/iron-validatable-behavior.git","type":"git"},"_npmVersion":"5.4.1","description":"Provides a behavior for an element that validates user input","directories":{},"maintainers":[{"name":"polymer","email":"admin@polymer-project.org"}],"resolutions":{"samsam":"1.1.3","inherits":"2.0.3","type-detect":"1.0.0","supports-color":"3.1.2"},"_nodeVersion":"8.2.1","contributors":"The Polymer Authors","dependencies":{"@polymer/polymer":"^3.0.0-pre.10","@polymer/iron-meta":"^3.0.0-pre.10"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"wct-browser-legacy":"0.0.1-pre.11","@polymer/paper-styles":"^3.0.0-pre.10","@polymer/test-fixture":"^3.0.0-pre.10","@polymer/iron-demo-helpers":"^3.0.0-pre.10","@polymer/iron-component-page":"^3.0.0-pre.10","@webcomponents/webcomponentsjs":"^1.0.0","@polymer/iron-validator-behavior":"^3.0.0-pre.10"},"_npmOperationalInternal":{"tmp":"tmp/iron-validatable-behavior_3.0.0-pre.10_1519341329523_0.6520685227819345","host":"s3://npm-registry-packages"},"_id":"@polymer/iron-validatable-behavior@3.0.0-pre.10","version":"3.0.0-pre.10"}