EasyUI Forum
May 08, 2024, 02:15:39 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: extend event Combotree's onShowPanel  (Read 4623 times)
iskandarkbr
Newbie
*
Posts: 36


View Profile Email
« 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');
            }
         }   
      });
« Last Edit: March 07, 2015, 06:51:53 AM by iskandarkbr » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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')
}
})
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!