Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use paper-dialog polymer element?

I am using the element by adding opening and closing tags <paper-dialog><p>This is it</p></paper-dialog> but it is not getting shown up. Do I need to add some script on top of it so that it should be triggered on some event? Or is there some another way to make it visible ?

like image 574
Heisenberg Avatar asked Nov 19 '14 11:11

Heisenberg


1 Answers

The dialog itself is autohidden. You usually toggle it with a button. For example, give the dialog an id="dialog" and make the button on-tap="toggleDialog" , which would be

toggleDialog: () => {
    this.$.dialog.toggle();
},
like image 163
Alex Kimoto Avatar answered Sep 25 '22 00:09

Alex Kimoto