Bug Tracker

Modify

Ticket #2838 (closed enhancement: invalid)

Opened 5 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

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

Change History

comment:1 Changed 5 years ago by flesler

  • Owner changed from paul to klaus

comment:2 Changed 4 years ago by klaus

  • Status changed from new to closed
  • Resolution set to invalid

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.