polymer 2.0. How to open dialog in parent element from child? -
i using polymer starter kit 2.i created paper-dialog , event in my-app.html:
<paper-dialog id="animated" entry-animation="scale-up-animation" exit-animation="fade-out-animation" with-backdrop> <h2>dialog title</h2> </paper-dialog> --------------------------------------------------------------- feedback(){ this.$.animated.open(); }
and want open dialog child view1 iron-pages. how can it?
you either raise event in child element , open dialog when receive or pass callback function child gets called whenever want open dialog.
events documentation: https://www.polymer-project.org/2.0/docs/devguide/events
Comments
Post a Comment