OLD | NEW |
(Empty) | |
| 1 // DO NOT EDIT: auto-generated with `pub run custom_element_apigen:update` |
| 2 |
| 3 /// Dart API for the polymer element `paper_ripple_behavior`. |
| 4 @HtmlImport('paper_ripple_behavior_nodart.html') |
| 5 library polymer_elements.lib.src.paper_behaviors.paper_ripple_behavior; |
| 6 |
| 7 import 'dart:html'; |
| 8 import 'dart:js' show JsArray, JsObject; |
| 9 import 'package:web_components/web_components.dart'; |
| 10 import 'package:polymer_interop/polymer_interop.dart'; |
| 11 import 'paper_ripple.dart'; |
| 12 |
| 13 /// `Polymer.PaperRippleBehavior` dynamically implements a ripple |
| 14 /// when the element has focus via pointer or keyboard. |
| 15 /// |
| 16 /// NOTE: This behavior is intended to be used in conjunction with and after |
| 17 /// `Polymer.IronButtonState` and `Polymer.IronControlState`. |
| 18 @BehaviorProxy(const ['Polymer', 'PaperRippleBehavior']) |
| 19 abstract class PaperRippleBehavior implements CustomElementProxyMixin { |
| 20 |
| 21 /// If true, the element will not produce a ripple effect when interacted |
| 22 /// with via the pointer. |
| 23 bool get noink => jsElement[r'noink']; |
| 24 set noink(bool value) { jsElement[r'noink'] = value; } |
| 25 |
| 26 /// Ensures this element contains a ripple effect. For startup efficiency |
| 27 /// the ripple effect is dynamically on demand when needed. |
| 28 /// [opt_triggeringEvent]: (optional) event that triggered the |
| 29 /// ripple. |
| 30 ensureRipple(opt_triggeringEvent) => |
| 31 jsElement.callMethod('ensureRipple', [opt_triggeringEvent]); |
| 32 |
| 33 /// Returns the `<paper-ripple>` element used by this element to create |
| 34 /// ripple effects. The element's ripple is created on demand, when |
| 35 /// necessary, and calling this method will force the |
| 36 /// ripple to be created. |
| 37 getRipple() => |
| 38 jsElement.callMethod('getRipple', []); |
| 39 |
| 40 /// Returns true if this element currently contains a ripple effect. |
| 41 bool hasRipple() => |
| 42 jsElement.callMethod('hasRipple', []); |
| 43 } |
OLD | NEW |