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

Side by Side Diff: lib/iron_form_element_behavior.dart

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/iron_form.dart ('k') | lib/iron_icon.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update`
2 2
3 /// Dart API for the polymer element `iron_form_element_behavior`. 3 /// Dart API for the polymer element `iron_form_element_behavior`.
4 @HtmlImport('iron_form_element_behavior_nodart.html') 4 @HtmlImport('iron_form_element_behavior_nodart.html')
5 library polymer_elements.lib.src.iron_form_element_behavior.iron_form_element_be havior; 5 library polymer_elements.lib.src.iron_form_element_behavior.iron_form_element_be havior;
6 6
7 import 'dart:html'; 7 import 'dart:html';
8 import 'dart:js' show JsArray, JsObject; 8 import 'dart:js' show JsArray, JsObject;
9 import 'package:web_components/web_components.dart'; 9 import 'package:web_components/web_components.dart';
10 import 'package:polymer_interop/polymer_interop.dart'; 10 import 'package:polymer_interop/polymer_interop.dart';
11 11
12 /// Polymer.IronFormElementBehavior enables a custom element to be included 12 /// Polymer.IronFormElementBehavior enables a custom element to be included
13 /// in an `iron-form`. 13 /// in an `iron-form`.
14 @BehaviorProxy(const ['Polymer', 'IronFormElementBehavior']) 14 @BehaviorProxy(const ['Polymer', 'IronFormElementBehavior'])
15 abstract class IronFormElementBehavior implements CustomElementProxyMixin { 15 abstract class IronFormElementBehavior implements CustomElementProxyMixin {
16 16
17 /// The name of this element. 17 /// The name of this element.
18 String get name => jsElement[r'name']; 18 String get name => jsElement[r'name'];
19 set name(String value) { jsElement[r'name'] = value; } 19 set name(String value) { jsElement[r'name'] = value; }
20 20
21 /// Set to true to mark the input as required. If used in a form, a 21 /// Set to true to mark the input as required. If used in a form, a
22 /// custom element that uses this behavior should also use 22 /// custom element that uses this behavior should also use
23 /// Polymer.IronValidatableBehavior and define a custom validation method. 23 /// Polymer.IronValidatableBehavior and define a custom validation method.
24 /// Otherwise, a `required` element will always be considered valid. 24 /// Otherwise, a `required` element will always be considered valid.
25 /// It's also strongly recomended to provide a visual style for the element 25 /// It's also strongly recommended to provide a visual style for the element
26 /// when it's value is invalid. 26 /// when its value is invalid.
27 bool get required => jsElement[r'required']; 27 bool get required => jsElement[r'required'];
28 set required(bool value) { jsElement[r'required'] = value; } 28 set required(bool value) { jsElement[r'required'] = value; }
29 29
30 /// The value for this element. 30 /// The value for this element.
31 String get value => jsElement[r'value']; 31 String get value => jsElement[r'value'];
32 set value(String value) { jsElement[r'value'] = value; } 32 set value(String value) { jsElement[r'value'] = value; }
33 } 33 }
OLDNEW
« no previous file with comments | « lib/iron_form.dart ('k') | lib/iron_icon.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698