EasyUI Forum
September 13, 2025, 04:26:14 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: change icon on Tab  (Read 7955 times)
msvabik
Newbie
*
Posts: 30


View Profile
« on: October 08, 2015, 03:56:54 AM »

Hello
How is it possible to change the icon in the tab?
Code:
<div id="docs_tabs" class="easyui-tabs" fit="true" border="false" plain="false"
tabHeight="44" tabPosition="top" >
<div title="title1" id="docs_tab_1" style="padding:5px;"
data-options="iconCls:'icon-unloc',href:'getdata.php'">
</div>

I tried:
Code:
$('#docs_tab_1').panel('options').IconCls = 'icon-lock';
and it did not work.

Could someone tell me how to do that?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 08, 2015, 06:29:19 PM »

Please call 'update' method to update the icon on a tab panel.
Code:
$('#docs_tabs').tabs('update', {
    tab: $('#docs_tab_1'),
    type: 'header',
    options:{
        iconCls: 'icon-lock'
    }
})
Logged
msvabik
Newbie
*
Posts: 30


View Profile
« Reply #2 on: October 12, 2015, 01:44:06 PM »

Thank you very much it works great
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!