Is there a way to pass an argument to a Polymer function from an element attribute inside its ?
After searching a lot, I found what I think is the cleanest possible solution.
If the paper-button is inside a template, e.g.
<template is="dom-repeat" items="{{allItems}}" as="item">
<paper-button on-tap="itemTapped">[[item.text]]</paper-button>
</template>
Then the properties can be accessed via "model" property in event object passed to function.
itemTapped: function(oEvent){
// oEvent.model.get is the getter for all properties of "item" in your bound array
console.log(oEvent.model.get('item.task'));
}
Depending on the situation, the clean way to do this is usually using dom-repeat. If you can format your data as an array of objects, you can just use e.model to get everything.