Closed oneezy closed 8 years ago
Ahh, never mind. Here's the correct way to do it.
<script>
Polymer({
is: "page-forms",
properties: {
selectedForm: {
type: Number,
value: 0
},
},
_onSelectedChanged: function(e) {
var target = e.target;
target.isGesture ? console.log("Swiped by Gesture!") : console.log("Swiped by Selection!");
}
});
</script>
Hi @oneezy , glad you found a solution so quickly! :)
My swipe page isn't showing up until I click on the paper tab.
I'm not using the the
template[is="dom-bind"]
method,,,I'm trying to make it work inside the
Polymer({ is: ...
script (not sure if this correct or not)Here's what I've got right now: