EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Andy1980 on November 08, 2013, 06:51:23 AM



Title: Enhance Multiple Combotree with header Panel
Post by: Andy1980 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:
(http://tree.jpg)
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.



Title: Re: Enhance Multiple Combotree with header Panel
Post by: stworthy 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')}
}]
});


Title: Re: Enhance Multiple Combotree with header Panel
Post by: Andy1980 on November 11, 2013, 02:21:21 AM
thank you very much, its working :-)