Lazy load models?

I tried to use the above javascript but the tabPanelId returned was something like “skuid-component-tab-15” instead of the label of the tab. I found the following link that has an e.g. of how to retrieve the label name.

https://community.skuid.com/t/access-label-of-currently-active-tab

Let me know if there is a more straightforward way to retrieve the tab label.