PolymerElements/paper-dialog-scrollable

Name: paper-dialog-scrollable

Owner: PolymerElements

Description: A scrollable area used in a Material Design dialog

Created: 2015-04-30 18:08:17.0

Updated: 2018-05-03 04:48:03.0

Pushed: 2018-05-23 02:35:15.0

Homepage: null

Size: 116

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build status Published on webcomponents.org

<paper-dialog-scrollable>

Material design: Dialogs

paper-dialog-scrollable implements a scrolling area used in a Material Design dialog. It shows a divider at the top and/or bottom indicating more content, depending on scroll position. Use this together with elements implementing Polymer.PaperDialogBehavior.

er-dialog-impl>
2>Header</h2>
aper-dialog-scrollable>
Lorem ipsum...
paper-dialog-scrollable>
iv class="buttons">
<paper-button>OK</paper-button>
div>
per-dialog-impl>

It shows a top divider after scrolling if it is not the first child in its parent container, indicating there is more content above. It shows a bottom divider if it is scrollable and it is not the last child in its parent container, indicating there is more content below. The bottom divider is hidden if it is scrolled to the bottom.

If paper-dialog-scrollable is not a direct child of the element implementing Polymer.PaperDialogBehavior, remember to set the dialogElement:

er-dialog-impl id="myDialog">
2>Header</h2>
iv class="my-content-wrapper">
<h4>Sub-header</h4>
<paper-dialog-scrollable>
  Lorem ipsum...
</paper-dialog-scrollable>
div>
iv class="buttons">
<paper-button>OK</paper-button>
div>
per-dialog-impl>

ipt>
r scrollable = Polymer.dom(myDialog).querySelector('paper-dialog-scrollable');
rollable.dialogElement = myDialog;
ript>
Styling

The following custom properties and mixins are available for styling:

| Custom property | Description | Default | | — | — | — | | --paper-dialog-scrollable | Mixin for the scrollable content | {} |


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.