Hi: 

I'm new to polymer with background in sencha's ext js. 

I'm playing around with the polymer starter kit and 

I'm looking for event listeners that can be triggered when an element is 
shown and hidden, 

I managed to find created, attached, detached  (i.e. below) but the created 
and attached is triggered once and that's it. 

I wanted to add buttons dynamically to the toolbar whenever my element is 
shown, is this possible?

<script>
        (function(){
            Polymer({
                is: 'my-element',
                properties: {
                  
                },
                created: function() {
                    console.log(this.localName + '#' + this.id + ' was 
created');
                },
                attached: function() {
                    console.log(this.localName + '#' + this.id + ' was 
attached');
                },
                detached: function() {
                    console.log(this.localName + '#' + this.id + ' was 
detached');
                }
            });
        })();

    </script>

Thanks 
Juan 




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/bee6e183-bcba-4712-b7d6-1296cad51b0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to