-
Enhancement
-
Resolution: Fixed
-
P4
-
fx2.0.1
I have a tab pane with 5 tabs in it. I would like to be able to programmatically stop some of them from activating. So when a user clicks on a disabled tab nothing happens (the normal behavior of switching to that tab happens on an enabled tab).
At it's simplest what I want is to treat the tab header as a button that I can disable/enable like other buttons.
Another approach would be to have an event for activating a new tab, as then I could catch and consume that event in certain circumstances (much like you can catch and consume other events to stop them bubbling up). The point here is that my condition for disabling a tab can be quite complex, something that may not fit into a simple disable/enable scenario. Of course this has it's downside too in that a disabled tab could have a different look, just like a disabled button.
So perhaps both :-)
At it's simplest what I want is to treat the tab header as a button that I can disable/enable like other buttons.
Another approach would be to have an event for activating a new tab, as then I could catch and consume that event in certain circumstances (much like you can catch and consume other events to stop them bubbling up). The point here is that my condition for disabling a tab can be quite complex, something that may not fit into a simple disable/enable scenario. Of course this has it's downside too in that a disabled tab could have a different look, just like a disabled button.
So perhaps both :-)