EasyUI Forum
September 14, 2025, 07:55:43 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: Disabling tab/tab header by parameter?  (Read 7143 times)
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« on: October 16, 2015, 02:06:15 AM »

Please see this fiddle
http://jsfiddle.net/mdu7hw8y/

I want to disable tab(tab header) for being selected but i want it to be disabled at first time rendered.
How to do that?

i know this code
$('#RIGHT_TABS').tabs('disableTab',2);
but i cannot guarantee to put this code in jquery document ready. I just want disable it by direct parameter, can i?

Thank you in advance
« Last Edit: October 16, 2015, 04:39:19 AM by aswzen » Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 on: October 17, 2015, 01:38:14 AM »

Please download patch from http://www.jeasyui.com/download/downloads/jquery-easyui-1.4.3-patch.zip and include to the page. To create a disabled tab panel, just set the 'disabled' property to true.
Code:
<div id="RIGHT_TABS" class="easyui-tabs" style="width:500px;height:250px;">
    <div title="GO ON" style="padding:20px">
        OK
    </div>
    <div title="GO ON 2" >
        OK
    </div>
    <div title="PLEASE DISABLE IT" data-options="iconCls:'icon-reload',disabled:true">
        IT SHOULD NOT BE ABLE TO SELECT
    </div>
</div>
Logged
aswzen
Sr. Member
****
Posts: 287


Indonesian

aswzen
View Profile WWW Email
« Reply #2 on: October 18, 2015, 07:52:17 PM »

ok thankyou man.. Smiley 谢谢
Logged

Regards,
Sigit

- Indonesian jEasyUI Facebook page : https://www.facebook.com/groups/jeasyuiid/
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!