Opened 13 years ago
Closed 11 years ago
#10552 closed enhancement (wontfix)
TabContainer: add visible attribute to tabs
Reported by: | Eric Pasquier | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | Dijit | Version: | 1.4.0 |
Keywords: | tabcontainer | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
At present, the only way to show/hide a tab dynamically in a tabcontainer is to use addChild/removeChild from the tabcontainer widget. Is it possible to implement a 'setVisible' function from the tab itself ? Also, define a 'visible' attribute for the declarative way.
(may be this will require a TabContentPane instead of a ContentPane ?)
Change History (3)
comment:1 Changed 13 years ago by
Component: | Dojox → Dijit |
---|---|
Owner: | Adam Peller deleted |
comment:2 Changed 13 years ago by
Description: | modified (diff) |
---|---|
Milestone: | tbd → future |
Summary: | Add visible attribute to tabs → TabContainer: add visible attribute to tabs |
It wouldn't require a TabContentPane widget but I'm not sure if the change is worth it just to prevent the user doing addChild() and removeChild(). It seems like a lot of work to support... I'll think about it.
PS: it wouldn't be setVisible() but rather attr("visible", false).
comment:3 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing in favor of #5601. If I add anything it would probably be to disable tabs, and even that is questionable. But if you just want the tab to disappear (rather than appearing disabled), it's easy enough to call addChild/removeChild.
I'm not sure I understand the requirement. The container seems like the right place to add and remove children. There is a separate discussion somewhere about whether to allow disabling of tabs (but still keep them in place)