Skip to main content

Bug Tracker

Side navigation

#2838 closed enhancement (invalid)

Opened May 10, 2008 01:43PM UTC

Closed January 16, 2009 06:35AM UTC

There should be a method to remove all the tabs from ui.tabs

Reported by: sjmittal Owned by: klaus
Priority: major Milestone: 1.2.4
Component: ui Version: 1.2.3
Keywords: ui.tabs Cc:
Blocked by: Blocking:
Description

Hi,

There is a need to remove all the tabs from ui.tabs without destroying the tabs.

The function name should be removeAll

This is the code I propose:

removeAll: function() {

var len = this.length();

for(var index = 0; index < len; index++) {

var $li = this.$lis.eq(index).remove(), $panel = this.$panels.eq(index).remove();

}

this.tabify();

}

If found appropriate please include it in the code.

Thanks

Sachin

Attachments (0)
Change History (2)

Changed May 11, 2008 08:34PM UTC by flesler comment:1

owner: paulklaus

Changed January 16, 2009 06:35AM UTC by klaus comment:2

resolution: → invalid
status: newclosed