Skip to content

Instantly share code, notes, and snippets.

@frankiefu
Created January 26, 2015 22:47
Show Gist options
  • Save frankiefu/72b907dc766382bd1792 to your computer and use it in GitHub Desktop.
Save frankiefu/72b907dc766382bd1792 to your computer and use it in GitHub Desktop.
<link rel="import" href="../core-selectable/core-selectable.html">
<link rel="import" href="../core-resizable/core-resizable.html">
<dom-module id="core-pages">
<style>
core-pages {
display: block;
}
core-pages > :not(.core-selected) {
display: none !important;
}
</style>
<template>
<div>
<div></div>
</div>
</template>
</dom-module>
<script>
Polymer({
is: 'core-pages',
published: {
index: Number,
selected: String
},
bind: {
index: 'indexChanged',
selected: 'selectedChanged',
selectedItem: 'selectedItemChanged'
},
ready: function() {
this.selectableReady();
},
attached: function() {
this.resizerAttached();
},
detached: function() {
this.resizerDetached();
},
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment