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