Skip to content

Instantly share code, notes, and snippets.

@dfreedm
Created June 24, 2014 23:16
Show Gist options
  • Save dfreedm/0e42c66934cab97beaed to your computer and use it in GitHub Desktop.
Save dfreedm/0e42c66934cab97beaed to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#notification_alert {
left: 390px;
top: 260px;
position: absolute;
}
#core_icon_button {
left: 0px;
top: 0px;
position: absolute;
width: 100%;
height: 100%;
}
</style>
<notification-alert message="Hi there!" icon="icon.png" name="notification" id="notification_alert"></notification-alert>
<core-icon-button icon="menu" id="core_icon_button" theme="core-light-theme" on-tap="{{tap}}"></core-icon-button>
</template>
<script>
Polymer('my-element', {
tap: function() {
this.$.notification_alert.notify();
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment