#3924 closed feature (wontfix)
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 (9)
comment:1 Changed 14 years ago by
Changed 13 years ago by
Attachment: | jquery-ui-tab-closable.css added |
---|
Changed 13 years ago by
Attachment: | jquery-ui-tab-closable.js added |
---|
comment:3 Changed 13 years ago by
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.
comment:5 Changed 13 years ago by
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(){ ...
comment:6 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This should be an extension.
comment:7 Changed 10 years ago by
Milestone: | 1.next → 1.6 |
---|
Note: See
TracTickets for help on using
tickets.
See also http://ui.jquery.com/bugs/ticket/2470 for patch (probably outdated) and some specification ideas.