Threaded View

Unclear how to implement afteritemchange listener

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?