Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#462 closed enhancement (fixed)

Provide a closing "X" control on TabPane tabs

Reported by: [email protected] Owned by: bill
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: TabPane Tab Cc: [email protected]…, [email protected]
Blocked By: Blocking:


A common UI pattern (in Eclipse, Firefox, Lotus Notes, etc.) is a tab with the ability to close itself via a close control, usually implemented as an "x" button either on the right of each tab (Eclipse, Lotus Notes, etc.) or on the right of a group of tabs, where pressing the "x" closes the currently selected tab (Firefox, etc.).

It would be very helpful if Dojo's TabPane widget were enhanced to provide this self-closing capability. Of the two mechanism described above (one close button per tab or one close button per TabPane) I prefer one close button per tab (as in Eclipse and Lotus Notes), though ideally you could optionally select either or none via TabPane properties.

One thing that's not clear from an implementation point of view is whether closing the tab should result in widget destruction or simple visual removal. I'd favor widget destruction, though again this might be made configurable to the developer.

Change History (2)

comment:1 Changed 16 years ago by bill

Milestone: 0.3release
Resolution: fixed
Status: newclosed
Version: 0.2

Thanks to Kris Leite for this code. Probably needs a bit of cleaning up, but it's basically done. Rev #3234.

comment:2 Changed 15 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.