EasyUI Forum
May 16, 2024, 08:31:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Enhance Multiple Combotree with header Panel  (Read 7165 times)
Andy1980
Newbie
*
Posts: 14


View Profile Email
« on: November 08, 2013, 06:51:23 AM »

Hi everybody,

i did the following:

Code:
                var my_panel = $('#cc').combo('panel');

$( my_panel ).panel({   
title:'My Panel',
tools:[{
iconCls:'icon-add',
handler:function(){alert('new')}
},{
iconCls:'icon-save',
handler:function(){alert('save')}
}]

});

which leads to this result:

see attached image

is it possible to get the icons working?
Cause if i click one of those icons, nothing happens and the tree gets closed, instead of showing me the alert message.

Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: November 08, 2013, 09:38:21 PM »

Try this:
Code:
$( my_panel ).panel({    
title:'My Panel',
headerCls:'combo-panel',
tools:[{
iconCls:'icon-add',
handler:function(){alert('new')}
},{
iconCls:'icon-save',
handler:function(){alert('save')}
}]
});
Logged
Andy1980
Newbie
*
Posts: 14


View Profile Email
« Reply #2 on: November 11, 2013, 02:21:21 AM »

thank you very much, its working :-)
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!