A scrollable area used inside the material design dialog
npm install @polymer/paper-dialog-scrollable


paper-dialog-scrollable implements a scrolling area used in a Material Design dialog. It showsPaperDialogBehavior.``html`
Header
Lorem ipsum...
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 PaperDialogBehavior,dialogElement
remember to set the :
`html
Header
Sub-header
Lorem ipsum...
`
The following custom properties and mixins are available for styling:
| Custom property | Description | Default |
| --- | --- | --- |
| --paper-dialog-scrollable | Mixin for the scrollable content | {} |
See: Documentation,
Demo.
npm install --save @polymer/paper-dialog-scrollable
`$3
`html
Heading
Scrolalble content...
`
$3
`js
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-dialog/paper-dialog.js';
import '@polymer/paper-dialog-scrollable/paper-dialog-scrollable.js';class SampleElement extends PolymerElement {
static get template() {
return html
Scrolalble content...
;
} _openDialog() {
this.$.dialog.open();
}
}
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:$3
`sh
git clone https://github.com/PolymerElements/paper-dialog-scrollable
cd paper-dialog-scrollable
npm install
npm install -g polymer-cli
`$3
`sh
polymer serve --npm
open http://127.0.0.1:/demo/
`$3
`sh
polymer test --npm
``