Unclear how to implement afteritemchange listener

I have a tabpanel and I would like to implement the afteritemchange event listener but not clear where to do so and cannot find examples.

I thought this would work but I am missing something. Also - my goal is to destroy panel as they are changed - It seems the afteritemchange has issues with animation (saw on another forum) - not sure if that is best approach for my goal?

I have a tabpanel and I would like to implement the afteritemchange event listener but not clear where to do so and cannot find examples.

I thought this would work but I am missing something. Also - my goal is to destroy panel as they are changed - It seems the afteritemchange has issues with animation (saw on another forum) - not sure if that is best approach for my goal?

Thanks for the tip Mitchell. I've already implemented something similar in a new project for now. However, the reason why I consider it a bug is because many people, including my self have thousands of lines of code written which rely on being able to configure listeners in definitions. I understand it may not be implemented yet, but I hope it will be by the general release.

I disagree that this is a bug. It's not a good idea to use the listeners property in a definition as when you instantiate that class and use the listeners as a config, the listeners property you used when you defined the class will now be overwritten and not used and that could break your class if you depend on those listeners.