Skip to content

rene-lindner-isw/isw-dialog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Demo Link: https://www.webcomponents.org/element/IswPolymerElements/isw-dialog/demo/demo/

<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

A paper-dialog with remote-control.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%