Created
November 6, 2015 11:09
-
-
Save kikill95/b12783c4467c91e64fc9 to your computer and use it in GitHub Desktop.
Kirill G. - little dive into Polymer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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