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

Side by Side Diff: lib/paper_ripple_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/paper_ripple.dart ('k') | lib/paper_ripple_behavior.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « lib/paper_ripple.dart ('k') | lib/paper_ripple_behavior.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698