I wanted to add buttons dynamically to the toolbar whenever my element is shown *** And remove those buttons when my element is hidden **** , is this possible?
On Saturday, June 27, 2015 at 6:27:23 PM UTC+10, [email protected] wrote: > > 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/15744b6c-ee29-4196-a66b-8e6ee713e235%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
