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

Unified Diff: lib/paper_tooltip.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, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/paper_toggle_button_nodart.html ('k') | lib/src/firebase-element/.travis.yml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/paper_tooltip.dart
diff --git a/lib/paper_tooltip.dart b/lib/paper_tooltip.dart
index 2be27bff5d5a196e65d3a6ec121f35edcd1a802d..28c67de149697e72674241a271bfdad1a8a4c4e9 100644
--- a/lib/paper_tooltip.dart
+++ b/lib/paper_tooltip.dart
@@ -13,6 +13,8 @@ import 'neon_animatable_behavior.dart';
import 'neon_animation/animations/fade_in_animation.dart';
import 'neon_animation/animations/fade_out_animation.dart';
+/// Material design: [Tooltips](https://www.google.com/design/spec/components/tooltips.html)
+///
/// `<paper-tooltip>` is a label that appears on hover and focus when the user
/// hovers over an element with the cursor or with the keyboard. It will be centered
/// to an anchor element specified in the `for` attribute, or, if that doesn't exist,
@@ -51,9 +53,17 @@ class PaperTooltip extends HtmlElement with CustomElementProxyMixin, PolymerBase
PaperTooltip.created() : super.created();
factory PaperTooltip() => new Element.tag('paper-tooltip');
+ /// The entry and exit animations that will be played when showing and
+ /// hiding the tooltip. If you want to override this, you must ensure
+ /// that your animationConfig has the exact format below.
get animationConfig => jsElement[r'animationConfig'];
set animationConfig(value) { jsElement[r'animationConfig'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;}
+ /// The delay that will be applied before the `entry` animation is
+ /// played when showing the tooltip.
+ num get animationDelay => jsElement[r'animationDelay'];
+ set animationDelay(num value) { jsElement[r'animationDelay'] = value; }
+
/// If true, no parts of the tooltip will ever be shown offscreen.
bool get fitToVisibleBounds => jsElement[r'fitToVisibleBounds'];
set fitToVisibleBounds(bool value) { jsElement[r'fitToVisibleBounds'] = value; }
« no previous file with comments | « lib/paper_toggle_button_nodart.html ('k') | lib/src/firebase-element/.travis.yml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698