Created
March 30, 2015 08:47
-
-
Save zdarovka/8923390d0f8ddbc1fec3 to your computer and use it in GitHub Desktop.
Core-list with transition to detail
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
<core-animated-pages fit selected="{{view}}"> | |
<section> | |
<core-list on-core-activate="{{selectView}}"> | |
<my-item></my-item> | |
</core-list> | |
</section> | |
<section> | |
<my-item-detail data="{{selectedItem}}"></my-item-detail> | |
</section> | |
</core-animated-pages> | |
<script> | |
Polymer({ | |
selectView: function(e){ | |
//change the view to 1 or 0 | |
//fill selectedItem object with detail data of item | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment