Opened 10 years ago

Closed 8 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 bill)

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 10 years ago by Adam Peller

Component: DojoxDijit
Owner: Adam Peller deleted

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)

comment:2 Changed 10 years ago by bill

Description: modified (diff)
Milestone: tbdfuture
Summary: Add visible attribute to tabsTabContainer: 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 8 years ago by bill

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.