2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 Material Design: <a href="http://www.google.com/design/spec/components/dialogs.html">Dialogs</a>
14 `paper-dialog-base` is a base class used to implement Material Design styled
18 @element paper-dialog-base
23 <link href=
"../polymer/polymer.html" rel=
"import">
24 <link href=
"../core-overlay/core-overlay.html" rel=
"import">
25 <link href=
"../core-transition/core-transition-css.html" rel=
"import">
27 <polymer-element name=
"paper-dialog-base" extends=
"core-overlay" role=
"dialog" on-core-overlay-open=
"{{openAction}}">
36 * The title of the dialog.
45 * @attribute transition
61 this.sizingTarget
= this.$.scroller
;
64 headingChanged: function(old
) {
65 var label
= this.getAttribute('aria-label');
66 if (!label
|| label
=== old
) {
67 this.setAttribute('aria-label', this.heading
);
71 openAction: function() {
72 if (this.$.scroller
.scrollTop
) {
73 this.$.scroller
.scrollTop
= 0;