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 ?
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();
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With