Opened 9 years ago

Closed 9 years ago

#11371 closed enhancement (duplicate)

Option for dijit.layout.TabContainer to switch to the most recently active tab when active tab is closed

Reported by: Kenneth G. Franqueiro Owned by: Shane O'Sullivan
Priority: high Milestone: tbd
Component: Dijit Version: 1.4.3
Keywords: dijit, TabContainer Cc: bill
Blocked By: Blocking:

Description

Currently, if you close the active tab in a TabContainer, it always makes the first tab active. It'd be nice to have an option to instead switch to the most recently active tab.

A couple people expressed interest in doing this yesterday (6/24/10) on the Dojo IRC channel, and I have to figure it's not the first time it's come up. Do you think this would be something reasonable to build in as an option?

If so, I actually implemented this in an extension class on top of 1.3 a year ago, and just brought it up to date for 1.4, to put in a blog post for those currently asking about it. I could probably craft it into a patch for dijit.layout.TabContainer and dijit.layout.TabController if desired. (Not for 1.5 presumably, given the timing.)

The blog post is here: http://kennethfranqueiro.com/2010/06/making-a-smarter-tabcontainer/

Attachments (1)

RetentiveTabContainer.js (2.0 KB) - added by Kenneth G. Franqueiro 9 years ago.
Revised source of extension from the blog post, now properly supporting 1.4 features

Download all attachments as: .zip

Change History (4)

comment:1 Changed 9 years ago by Tom Trenka

Owner: set to sos

comment:2 Changed 9 years ago by Tom Trenka

Owner: changed from sos to Shane O'Sullivan

Sorry--thought you were sos in the system here...

Changed 9 years ago by Kenneth G. Franqueiro

Attachment: RetentiveTabContainer.js added

Revised source of extension from the blog post, now properly supporting 1.4 features

comment:3 Changed 9 years ago by bill

Resolution: duplicate
Status: newclosed

Dup of #9776.

Note: See TracTickets for help on using tickets.