I am currently working with a list of users who have a specific type (user, power_user, etc).
Depending on those types, the tabview attached to the user has to have more or less tabs.
So, for instance, when I click on a user with the type ‘simple_user’, one of the tabs has to be hidden, or removed. And when I click on a ‘power_user’ user, the tab has to be active and shown again.
I didn’t find a solution since the hide method isn’t working with the tabview.
I tried to remove the tab then reconstruct the tabview, but the reconstruct method failed as well
I put a snippet with a basic idea of what I want to do with the reconstruct method below :
This code does modify only top line of tabview ( the tabbar control ) by removing one of options ( tab ) or by restoring the original list of options ( tabs )