EasyUI Forum
October 10, 2024, 10:25:52 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] how to hide tab button of selected tab ?  (Read 7415 times)
Coder
Jr. Member
**
Posts: 96


View Profile
« on: December 16, 2018, 09:19:57 PM »

Code:
var p = $('#tabsA').tabs('tabs');
if (p){
$.each(p,function(eachIndex,tabItem){
if(tabItem[0].id==row.hID){
var index = $('#tabsA').tabs('getTabIndex', tabItem);
$('#tabsA').tabs('select', index);

tabItem[0].tabButtonWidth=0; // ???

pageFound=true;
return false;//leave each
}
});
};
« Last Edit: December 29, 2018, 05:27:11 PM by Coder » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 17, 2018, 06:43:59 PM »

What's the tab button? Please describe your question in more details.
Logged
Coder
Jr. Member
**
Posts: 96


View Profile
« Reply #2 on: December 19, 2018, 02:30:44 AM »



« Last Edit: December 19, 2018, 02:45:32 AM by Coder » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: December 19, 2018, 08:03:38 PM »

Please try this code:
Code:
var index = ...
$('#tt').tabs('select', index);
var p = $('#tt').tabs('getTab', index);
p.panel('options').tab.hide();
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!