Skip to content

Instantly share code, notes, and snippets.

@zdarovka
Created March 30, 2015 08:47
Show Gist options
  • Save zdarovka/8923390d0f8ddbc1fec3 to your computer and use it in GitHub Desktop.
Save zdarovka/8923390d0f8ddbc1fec3 to your computer and use it in GitHub Desktop.
Core-list with transition to detail
<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