Hi guys 

This is probably a wild question and a shot in the dark. 

I know its not a big deal to map the on-click using the declarative event 
mapping (Which is super nice) but for simple handlers is there away to 
evaluate the logic within the templates binding expression reducing the 
need to write a JS function to handle it and then increment/decrement the 
page property

Take this piece of polymer for example

<polymer-element name="element-1" attributes="page">
     <template>
        <left-button on-click="{{$.page--}}"></left-button>
        <right-button on-click="{{$.page++}}"></right-button>
        <core-pages selected="{{page}}">
         ......
       </core-pages>
    </template>
</polymer-element>  

Forgive me for any typos I just quickly tried to explain what I was trying 
to achieve..

Regards

Daniel

Polymer is awesome :) ..

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/4bbb7ef0-8c14-45e0-8308-da82a3a8cc5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to