Title: [SOLVED] how to hide tab button of selected tab ? Post by: Coder 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 } }); }; Title: Re: how to hide tab button of selected tab ? Post by: stworthy on December 17, 2018, 06:43:59 PM What's the tab button? Please describe your question in more details.
Title: Re: how to hide tab button of selected tab ? Post by: Coder on December 19, 2018, 02:30:44 AM (https://www.jeasyui.com/forum/index.php?action=dlattach;topic=7804.0;attach=1830;image)
(https://www.jeasyui.com/forum/index.php?action=dlattach;topic=7804.0;attach=1832;image) Title: Re: how to hide tab button of selected tab ? Post by: stworthy 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(); |