Skip to content

Instantly share code, notes, and snippets.

@ressu
Created August 12, 2014 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ressu/9d62da40b59def01c279 to your computer and use it in GitHub Desktop.
Save ressu/9d62da40b59def01c279 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../paper-dialog/paper-dialog.html">
<polymer-element name="my-element">
<template>
<paper-dialog heading="heading" backdrop layered opened="true"></paper-dialog>
</template>
<script>
Polymer('my-element', {
opened: true,
openedChanged: function (oldValue, newValue) {
console.log("From " + oldValue + " to " + newValue);
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment