Skip to main content

Search and Top Navigation

#3924 closed feature (wontfix)

Opened January 23, 2009 09:11PM UTC

Closed October 21, 2010 06:45PM UTC

Last modified October 03, 2012 03:38PM UTC

Provide option to make tabs closable

Reported by: klaus.hartl Owned by: klaus.hartl
Priority: major Milestone: 1.6
Component: ui.tabs Version: 1.6rc5
Keywords: Cc:
Blocked by: Blocking:
Description

There should be a little button inside a tab to close it.

Design is required as well.

Attachments (2)
Change History (7)

Changed January 23, 2009 09:15PM UTC by klaus.hartl comment:1

See also http://ui.jquery.com/bugs/ticket/2470 for patch (probably outdated) and some specification ideas.

Changed May 07, 2009 01:03PM UTC by jzaefferer comment:2

milestone: TBD1.next

Spec needed.

Changed September 25, 2009 07:37PM UTC by prekageo comment:3

Based on original work from Mike Dalessio:

http://flavoriffic.blogspot.com/2008/05/jquery-ui-and-closable-tabs.html

I made the following patches to include close buttons for tabs in jQuery UI 1.7.2:

  • CSS file (added two !important)
  • JS file (extending _tabify and defaults, using code from the original author)

Please note that closable = 'selected' is not implemented as it was in the original code.

Changed September 29, 2009 06:51AM UTC by mdalessio comment:4

Awesome. I'd love to see this feature make it in (finally). +1

Changed February 17, 2010 08:50PM UTC by wcravens comment:5

This feature worked well for me... but it doesn't play nicely with .tabs().add() as it is. It will append multiple closing anchors. I'm no expert but this worked for me:

    ...
    this.$lis.not(':has(a.' + o.closeAnchorClass + ')').each(function(){
    ...

Changed October 21, 2010 06:45PM UTC by scottgonzalez comment:6

resolution: → wontfix
status: newclosed

This should be an extension.

Changed October 03, 2012 03:38PM UTC by scottgonzalez comment:7

milestone: 1.next1.6