Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: lib/src/iron-form-element-behavior/iron-form-element-behavior.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/iron-flex-layout/iron-flex-layout.html ('k') | lib/src/iron-form/iron-form.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 value: { 46 value: {
47 notify: true, 47 notify: true,
48 type: String 48 type: String
49 }, 49 },
50 50
51 /** 51 /**
52 * Set to true to mark the input as required. If used in a form, a 52 * Set to true to mark the input as required. If used in a form, a
53 * custom element that uses this behavior should also use 53 * custom element that uses this behavior should also use
54 * Polymer.IronValidatableBehavior and define a custom validation method. 54 * Polymer.IronValidatableBehavior and define a custom validation method.
55 * Otherwise, a `required` element will always be considered valid. 55 * Otherwise, a `required` element will always be considered valid.
56 * It's also strongly recomended to provide a visual style for the element 56 * It's also strongly recommended to provide a visual style for the elemen t
57 * when it's value is invalid. 57 * when its value is invalid.
58 */ 58 */
59 required: { 59 required: {
60 type: Boolean, 60 type: Boolean,
61 value: false 61 value: false
62 }, 62 },
63 63
64 /** 64 /**
65 * The form that the element is registered to. 65 * The form that the element is registered to.
66 */ 66 */
67 _parentForm: { 67 _parentForm: {
68 type: Object 68 type: Object
69 } 69 }
70 }, 70 },
71 71
72 attached: function() { 72 attached: function() {
73 // Note: the iron-form that this element belongs to will set this 73 // Note: the iron-form that this element belongs to will set this
74 // element's _parentForm property when handling this event. 74 // element's _parentForm property when handling this event.
75 this.fire('iron-form-element-register'); 75 this.fire('iron-form-element-register');
76 }, 76 },
77 77
78 detached: function() { 78 detached: function() {
79 if (this._parentForm) { 79 if (this._parentForm) {
80 this._parentForm.fire('iron-form-element-unregister', {target: this}); 80 this._parentForm.fire('iron-form-element-unregister', {target: this});
81 } 81 }
82 } 82 }
83 83
84 }; 84 };
85 85
86 </script> 86 </script>
OLDNEW
« no previous file with comments | « lib/src/iron-flex-layout/iron-flex-layout.html ('k') | lib/src/iron-form/iron-form.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698