Skip to content

Instantly share code, notes, and snippets.

@designer-polymer
Created April 7, 2014 23:38
Show Gist options
  • Select an option

  • Save designer-polymer/10073846 to your computer and use it in GitHub Desktop.

Select an option

Save designer-polymer/10073846 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
#core_icon {
height: 24px;
width: 24px;
position: absolute;
left: 50px;
top: 40px;
}
</style>
<core-icon size="24" icon="{{ icon }}" theme="core-light-theme" id="core_icon" on-tap="function () {
console.log('zonk');
}"></core-icon>
</template>
<script>
Polymer('my-element', {
foo: 5,
icon: 'drawer',
zot: false,
gow: null,
zonk: function () {
console.log('zonk');
}
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment