Directory

paper-dialog - Vaadin Add-on Directory

A Material Design dialog paper-dialog - Vaadin Add-on Directory
[![Published on NPM](https://img.shields.io/npm/v/@polymer/paper-dialog.svg)](https://www.npmjs.com/package/@polymer/paper-dialog) [![Build status](https://travis-ci.org/PolymerElements/paper-dialog.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-dialog) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/paper-dialog) ## <paper-dialog> `` is a dialog with Material Design styling and optional animations when it is opened or closed. It provides styles for a header, content area, and an action area for buttons. You can use the `` element (in its own repository) if you need a scrolling content area. To autofocus a specific child element after opening the dialog, give it the `autofocus` attribute. See `PaperDialogBehavior` and `IronOverlayBehavior` for specifics. For example, the following code implements a dialog with a header, scrolling content area and buttons. Focus will be given to the `dialog-confirm` button when the dialog is opened. ```html

Header

Lorem ipsum...
Cancel Accept
``` ### Styling See the docs for `PaperDialogBehavior` for the custom properties available for styling this element. ### Animations Set the `entry-animation` and/or `exit-animation` attributes to add an animation when the dialog is opened or closed. See the documentation in [PolymerElements/neon-animation](https://github.com/PolymerElements/neon-animation) for more info. For example: ```html

Header

Dialog body
``` ### Accessibility See the docs for `PaperDialogBehavior` for accessibility features implemented by this element. See: [Documentation](https://www.webcomponents.org/element/@polymer/paper-dialog), [Demo](https://www.webcomponents.org/element/@polymer/paper-dialog/demo/demo/index.html). ## Usage ### Installation ``` npm install --save @polymer/paper-dialog ``` ### In an html file ```html

Content

``` ### In a Polymer 3 element ```js import {PolymerElement, html} from '@polymer/polymer'; import '@polymer/paper-dialog/paper-dialog.js'; class SampleElement extends PolymerElement { static get template() { return html`

Content

`; } } customElements.define('sample-element', SampleElement); ``` ## Contributing If you want to send a PR to this element, here are the instructions for running the tests and demo locally: ### Installation ```sh git clone https://github.com/PolymerElements/paper-dialog cd paper-dialog npm install npm install -g polymer-cli ``` ### Running the demo locally ```sh polymer serve --npm open http://127.0.0.1:/demo/ ``` ### Running the tests ```sh polymer test --npm ```
View on GitHub
Online Demo
View on NPM
Documentation
GitHub Homepage
Issue tracker
License

paper-dialog version 0.9.0
### Dependencies * polymer#Polymer/polymer#v0.9.0-rc.1 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^0.9.0 * paper-styles#PolymerElements/paper-styles#^0.9.0

paper-dialog version 0.9.1
### Dependencies * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^0.9.0 * paper-styles#PolymerElements/paper-styles#^0.9.0 * polymer#Polymer/polymer#^0.9.0

paper-dialog version 0.9.2
### Dependencies * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^0.9.0 * paper-styles#PolymerElements/paper-styles#^0.9.0 * polymer#Polymer/polymer#^0.9.0

paper-dialog version 0.9.3
### Dependencies * polymer#Polymer/polymer#^0.9.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^0.9.0 * paper-styles#PolymerElements/paper-styles#^0.9.0 * neon-animation#PolymerElements/neon-animation#^0.9.0

paper-dialog version 0.9.4
### Dependencies * polymer#Polymer/polymer#^0.9.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^0.9.0 * paper-styles#PolymerElements/paper-styles#^0.9.0 * neon-animation#PolymerElements/neon-animation#^0.9.0

paper-dialog version 1.0.0
### Dependencies * polymer#Polymer/polymer#^1.0.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * neon-animation#PolymerElements/neon-animation#^1.0.0

paper-dialog version 1.0.1
### Dependencies * polymer#Polymer/polymer#^1.0.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * neon-animation#PolymerElements/neon-animation#^1.0.0

paper-dialog version 1.0.2
### Dependencies * polymer#Polymer/polymer#^1.0.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * neon-animation#PolymerElements/neon-animation#^1.0.0

paper-dialog version 1.0.3
### Dependencies * polymer#Polymer/polymer#^1.1.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * neon-animation#PolymerElements/neon-animation#^1.0.0

paper-dialog version 0.0.1
### Dependencies * @polymer/neon-animation#^0.0.1 * @polymer/paper-dialog-behavior#^0.0.1 * @polymer/paper-styles#^0.0.1 * @polymer/polymer#^1.2.5-npm-test.2

paper-dialog version 0.0.3
### Dependencies * @polymer/neon-animation#^0.0.3 * @polymer/paper-dialog-behavior#^0.0.3 * @polymer/paper-styles#^0.0.3 * @polymer/polymer#^1.2.5-npm-test.2

paper-dialog version 1.0.4
### Dependencies * neon-animation#PolymerElements/neon-animation#^1.0.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-dialog version 1.1.0
### Dependencies * neon-animation#PolymerElements/neon-animation#^1.0.0 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#^1.0.0 * iron-overlay-behavior#PolymerElements/iron-overlay-behavior#^1.7.0 * paper-styles#PolymerElements/paper-styles#^1.0.0 * polymer#Polymer/polymer#^1.1.0

paper-dialog version 2.0.0
### Dependencies * neon-animation#PolymerElements/neon-animation#1 - 2 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#1 - 2 * iron-overlay-behavior#PolymerElements/iron-overlay-behavior#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-dialog version 3.0.0-pre.1
### Dependencies * @polymer/neon-animation#^3.0.0-pre.1 * @polymer/paper-dialog-behavior#^3.0.0-pre.1 * @polymer/iron-overlay-behavior#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-dialog version 2.0.1
### Dependencies * neon-animation#PolymerElements/neon-animation#1 - 2 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#1 - 2 * iron-overlay-behavior#PolymerElements/iron-overlay-behavior#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-dialog version 3.0.0-pre.2
### Dependencies * @polymer/neon-animation#^3.0.0-pre.1 * @polymer/paper-dialog-behavior#^3.0.0-pre.1 * @polymer/iron-overlay-behavior#^3.0.0-pre.1 * @polymer/polymer#^3.0.0-pre.1

paper-dialog version 3.0.0-pre.3
### Dependencies * @polymer/neon-animation#^3.0.0-pre.3 * @polymer/paper-dialog-behavior#^3.0.0-pre.3 * @polymer/iron-overlay-behavior#^3.0.0-pre.3 * @polymer/polymer#^3.0.0-pre.3

paper-dialog version 3.0.0-pre.4
### Dependencies * @polymer/neon-animation#^3.0.0-pre.4 * @polymer/paper-dialog-behavior#^3.0.0-pre.4 * @polymer/iron-overlay-behavior#^3.0.0-pre.4 * @polymer/polymer#^3.0.0-pre.4

paper-dialog version 3.0.0-pre.6
### Dependencies * @polymer/neon-animation#^3.0.0-pre.6 * @polymer/paper-dialog-behavior#^3.0.0-pre.6 * @polymer/iron-overlay-behavior#^3.0.0-pre.6 * @polymer/polymer#^3.0.0-pre.6

paper-dialog version 3.0.0-pre.7
### Dependencies * @polymer/neon-animation#^3.0.0-pre.7 * @polymer/paper-dialog-behavior#^3.0.0-pre.7 * @polymer/iron-overlay-behavior#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-dialog version 3.0.0-pre.8
### Dependencies * @polymer/neon-animation#^3.0.0-pre.7 * @polymer/paper-dialog-behavior#^3.0.0-pre.7 * @polymer/iron-overlay-behavior#^3.0.0-pre.7 * @polymer/polymer#^3.0.0-pre.7

paper-dialog version 2.1.0
### Dependencies * neon-animation#PolymerElements/neon-animation#1 - 2 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#1 - 2 * iron-overlay-behavior#PolymerElements/iron-overlay-behavior#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-dialog version 3.0.0-pre.10
### Dependencies * @polymer/neon-animation#^3.0.0-pre.10 * @polymer/paper-dialog-behavior#^3.0.0-pre.10 * @polymer/iron-overlay-behavior#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-dialog version 3.0.0-pre.11
### Dependencies * @polymer/neon-animation#^3.0.0-pre.10 * @polymer/paper-dialog-behavior#^3.0.0-pre.10 * @polymer/iron-overlay-behavior#^3.0.0-pre.10 * @polymer/polymer#^3.0.0-pre.10

paper-dialog version 2.1.1
### Dependencies * neon-animation#PolymerElements/neon-animation#1 - 2 * paper-dialog-behavior#PolymerElements/paper-dialog-behavior#1 - 2 * iron-overlay-behavior#PolymerElements/iron-overlay-behavior#1 - 2 * polymer#Polymer/polymer#1.9 - 2

paper-dialog version 3.0.0-pre.12
### Dependencies * @polymer/neon-animation#3.0.0-pre.12 * @polymer/paper-dialog-behavior#3.0.0-pre.12 * @polymer/iron-overlay-behavior#3.0.0-pre.12 * @polymer/polymer#3.0.0-pre.12

paper-dialog version 3.0.0-pre.13
### Dependencies * @polymer/neon-animation#^3.0.0-pre.13 * @polymer/paper-dialog-behavior#^3.0.0-pre.13 * @polymer/iron-overlay-behavior#^3.0.0-pre.13 * @polymer/polymer#^3.0.0-pre.13

paper-dialog version 3.0.0-pre.14
### Dependencies * @polymer/neon-animation#^3.0.0-pre.14 * @polymer/paper-dialog-behavior#^3.0.0-pre.14 * @polymer/iron-overlay-behavior#^3.0.0-pre.14 * @polymer/polymer#^3.0.0-pre.13

paper-dialog version 3.0.0-pre.15
### Dependencies * @polymer/neon-animation#^3.0.0-pre.15 * @polymer/paper-dialog-behavior#^3.0.0-pre.15 * @polymer/iron-overlay-behavior#^3.0.0-pre.15 * @polymer/polymer#^3.0.0-pre.13

paper-dialog version 3.0.0-pre.16
### Dependencies * @polymer/neon-animation#^3.0.0-pre.16 * @polymer/paper-dialog-behavior#^3.0.0-pre.16 * @polymer/iron-overlay-behavior#^3.0.0-pre.16 * @polymer/polymer#^3.0.0-pre.13

paper-dialog version 3.0.0-pre.17
### Dependencies * @polymer/neon-animation#^3.0.0-pre.17 * @polymer/paper-dialog-behavior#^3.0.0-pre.17 * @polymer/iron-overlay-behavior#^3.0.0-pre.17 * @polymer/polymer#^3.0.0-pre.13

paper-dialog version 3.0.0-pre.18
### Dependencies * @polymer/neon-animation#^3.0.0-pre.18 * @polymer/paper-dialog-behavior#^3.0.0-pre.18 * @polymer/iron-overlay-behavior#^3.0.0-pre.18 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.19
### Dependencies * @polymer/neon-animation#^3.0.0-pre.19 * @polymer/paper-dialog-behavior#^3.0.0-pre.19 * @polymer/iron-overlay-behavior#^3.0.0-pre.19 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.20
### Dependencies * @polymer/neon-animation#^3.0.0-pre.20 * @polymer/paper-dialog-behavior#^3.0.0-pre.20 * @polymer/iron-overlay-behavior#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.21
### Dependencies * @polymer/neon-animation#^3.0.0-pre.21 * @polymer/paper-dialog-behavior#^3.0.0-pre.21 * @polymer/iron-overlay-behavior#^3.0.0-pre.21 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.22
### Dependencies * @polymer/neon-animation#^3.0.0-pre.20 * @polymer/paper-dialog-behavior#^3.0.0-pre.20 * @polymer/iron-overlay-behavior#^3.0.0-pre.20 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.23
### Dependencies * @polymer/neon-animation#^3.0.0-pre.22 * @polymer/paper-dialog-behavior#^3.0.0-pre.22 * @polymer/iron-overlay-behavior#^3.0.0-pre.23 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.24
### Dependencies * @polymer/neon-animation#^3.0.0-pre.22 * @polymer/paper-dialog-behavior#^3.0.0-pre.22 * @polymer/iron-overlay-behavior#^3.0.0-pre.23 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.25
### Dependencies * @polymer/neon-animation#^3.0.0-pre.24 * @polymer/paper-dialog-behavior#^3.0.0-pre.24 * @polymer/iron-overlay-behavior#^3.0.0-pre.25 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0-pre.26
### Dependencies * @polymer/neon-animation#^3.0.0-pre.25 * @polymer/paper-dialog-behavior#^3.0.0-pre.25 * @polymer/iron-overlay-behavior#^3.0.0-pre.26 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.0
### Dependencies * @polymer/neon-animation#^3.0.0-pre.26 * @polymer/paper-dialog-behavior#^3.0.0-pre.26 * @polymer/iron-overlay-behavior#^3.0.0-pre.27 * @polymer/polymer#^3.0.0

paper-dialog version 3.0.1
### Dependencies * @polymer/neon-animation#^3.0.0-pre.26 * @polymer/paper-dialog-behavior#^3.0.0-pre.26 * @polymer/iron-overlay-behavior#^3.0.0-pre.27 * @polymer/polymer#^3.0.0