OLD | NEW |
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_selectable`. | 3 /// Dart API for the polymer element `iron_selectable`. |
4 @HtmlImport('iron_selectable_nodart.html') | 4 @HtmlImport('iron_selectable_nodart.html') |
5 library polymer_elements.lib.src.iron_selector.iron_selectable; | 5 library polymer_elements.lib.src.iron_selector.iron_selectable; |
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 import 'iron_selection.dart'; | 11 import 'iron_selection.dart'; |
12 | 12 |
13 | 13 |
14 @BehaviorProxy(const ['Polymer', 'IronSelectableBehavior']) | 14 @BehaviorProxy(const ['Polymer', 'IronSelectableBehavior']) |
15 abstract class IronSelectableBehavior implements CustomElementProxyMixin { | 15 abstract class IronSelectableBehavior implements CustomElementProxyMixin { |
16 | 16 |
17 /// The event that fires from items when they are selected. Selectable | 17 /// The event that fires from items when they are selected. Selectable |
18 /// will listen for this event from items and update the selection state. | 18 /// will listen for this event from items and update the selection state. |
19 /// Set to empty string to listen to no events. | 19 /// Set to empty string to listen to no events. |
20 String get activateEvent => jsElement[r'activateEvent']; | 20 String get activateEvent => jsElement[r'activateEvent']; |
21 set activateEvent(String value) { jsElement[r'activateEvent'] = value; } | 21 set activateEvent(String value) { jsElement[r'activateEvent'] = value; } |
22 | 22 |
23 /// If you want to use the attribute value of an element for `selected` instea
d of the index, | 23 /// If you want to use the attribute value of an element for `selected` instea
d of the index, |
24 /// set this to the name of the attribute. | 24 /// set this to the name of the attribute. |
25 String get attrForSelected => jsElement[r'attrForSelected']; | 25 String get attrForSelected => jsElement[r'attrForSelected']; |
26 set attrForSelected(String value) { jsElement[r'attrForSelected'] = value; } | 26 set attrForSelected(String value) { jsElement[r'attrForSelected'] = value; } |
27 | 27 |
28 /// The set of excluded elements where the key is the `localName` | |
29 /// of the element that will be ignored from the item list. | |
30 get excludedLocalNames => jsElement[r'excludedLocalNames']; | |
31 set excludedLocalNames(value) { jsElement[r'excludedLocalNames'] = (value is M
ap || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : va
lue;} | |
32 | |
33 /// Returns an array of selectable items. | 28 /// Returns an array of selectable items. |
34 get items => jsElement[r'items']; | 29 get items => jsElement[r'items']; |
35 | 30 |
36 /// This is a CSS selector string. If this is set, only items that match the
CSS selector | 31 /// This is a CSS selector string. If this is set, only items that match the
CSS selector |
37 /// are selectable. | 32 /// are selectable. |
38 String get selectable => jsElement[r'selectable']; | 33 String get selectable => jsElement[r'selectable']; |
39 set selectable(String value) { jsElement[r'selectable'] = value; } | 34 set selectable(String value) { jsElement[r'selectable'] = value; } |
40 | 35 |
41 /// Gets or sets the selected element. The default is to use the index of the
item. | 36 /// Gets or sets the selected element. The default is to use the index of the
item. |
42 get selected => jsElement[r'selected']; | 37 get selected => jsElement[r'selected']; |
(...skipping 21 matching lines...) Expand all Loading... |
64 jsElement.callMethod('select', [value]); | 59 jsElement.callMethod('select', [value]); |
65 | 60 |
66 /// Selects the next item. | 61 /// Selects the next item. |
67 selectNext() => | 62 selectNext() => |
68 jsElement.callMethod('selectNext', []); | 63 jsElement.callMethod('selectNext', []); |
69 | 64 |
70 /// Selects the previous item. | 65 /// Selects the previous item. |
71 selectPrevious() => | 66 selectPrevious() => |
72 jsElement.callMethod('selectPrevious', []); | 67 jsElement.callMethod('selectPrevious', []); |
73 } | 68 } |
OLD | NEW |