Skip to content

Instantly share code, notes, and snippets.

@kikill95
Created November 6, 2015 11:09
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 kikill95/b12783c4467c91e64fc9 to your computer and use it in GitHub Desktop.
Save kikill95/b12783c4467c91e64fc9 to your computer and use it in GitHub Desktop.
Kirill G. - little dive into Polymer
<link rel="import"
href="../bower_components/polymer/polymer.html">
<link rel="import"
href="../bower_components/paper-fab/paper-fab.html">
<dom-module id="my-el-3">
<template>
<style>
.big-shadow {
display: inline-block;
margin: 20px;
padding: 20px;
}
#test-add-icon {
color: floralwhite;
--paper-fab-background: blue;
}
</style>
<div class="big-shadow shadow-16dp">
<paper-fab id="test-add-icon" icon="add" on-click="shout"></paper-fab>
<paper-fab mini icon="favorite"></paper-fab>
</div>
<br/>
</template>
<script>
Polymer({
is: "my-el-3",
shout: function () {
console.log('Shout!');
}
});
</script>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment