See the following html in a Polymer app:
<paper-dialog id="confirmation" modal auto-fit-on-attach>
<h2><spring:message code="confirmation" /></h2>
<p>Are you sure ?<p>
<div class="buttons">
<paper-button dialog-confirm><spring:message code="yes" /></paper-button>
<paper-button dialog-dismiss><spring:message code="no" /></paper-button>
</div>
</paper-dialog>
And the following JavaScript:
document.querySelector("#confirmation p").innerText = (message === undefined) ? "No message" : message;
document.getElementById("confirmation").toggle();
How to get the return value ´confirmed´ from the dialog?