EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: iskandarkbr on March 07, 2015, 02:31:44 AM



Title: extend event Combotree's onShowPanel
Post by: iskandarkbr on March 07, 2015, 02:31:44 AM
i want to extend the combotree's event, onShowPanel.
how should i write the code?

i've tried this, but still not working:

$.extend($.fn.combotree.defaults,{
         inputEvents:{
            onShowPanel:function(){
               console.log('tesss');
            }
         }   
      });


Title: Re: extend event Combotree's onShowPanel
Post by: stworthy on March 07, 2015, 08:35:18 AM
The 'onShowPanel' is the built-in event, you don't need to re-define it again.
Code:
$('#cc').combotree({
onShowPanel:function(){
console.log('show panel')
}
})