How to enable and disbale the tabs based on some condition

How to enable and disbale the tabs based on some condition

How to enable and disbale the tabs based on some condition?
For example iam having 4 tabs.
If iam loading second tab i dont want to show the 1st,3rd & 4th tabs to the user.