Get TabBarButton at a given index inside TabbedComponent

Hi Jules,

I’ve made custom TabBarButtons where I store additional info about tabs.

My problem is, I didn’t found a way to retrieve those in the popupMenuClickOnTab callback.

Is there a way ?

If it’s not possible, what about adding a getter in TabbedButtonBar
so I’ll be able to dynamic_cast the TabBarButton returned.

Thanks,

A button isn’t the right place to store any useful data - they’re transient objects that could be created or deleted at any time. They should rely on your underlying model to provide any info they need.

oki doki.
thx