Skip to content

Material Design Polymer 2.0 Dialog, stacking context safe with remote-control.

License

Notifications You must be signed in to change notification settings

IswPolymerElements/isw-dialog

Repository files navigation

<isw-dialog>

A stacking-context safe paper-dialog with remote-control.

Place your dialog somewhere save from stacking-context issues, and access it over a remote element in your view.

Designed as a workshift solution till the stacking context issues in paper-dialog are fixed.

<isw-dialog name="myUniqueDialogName" data="{{dataFromRemote}}">
  <h2>Header</h2>
  <paper-dialog-scrollable>
    Lorem ipsum: [[dataFromRemote.someTextProperty]]
  </paper-dialog-scrollable>
  <div class="buttons">
    <paper-button dialog-dismiss>Cancel</paper-button>
    <paper-button dialog-confirm autofocus>Accept</paper-button>
  </div>
</isw-dialog>
<isw-dialog-remote
    id="dialogRemote"
    dialog="myUniqueDialogName"
    data="[[dataForDialog]]"
    on-iron-overlay-closed="_closed">
</isw-dialog-remote>
open() {
  this.$.dialogRemote.open();
}
_closed( event ) {
  console.log( event );
}

About

Material Design Polymer 2.0 Dialog, stacking context safe with remote-control.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages