EasyUI Forum
April 19, 2024, 01:04:23 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: How to: events in panel  (Read 4443 times)
danny36
Newbie
*
Posts: 9


View Profile Email
« on: July 25, 2017, 07:07:21 AM »

I'm sorry but I don't find in documentation how to use events in panel module. What is the right sintax?

I use easyui-navpanel in a mobile project and I need to trigger when user change panels.
« Last Edit: July 25, 2017, 07:10:44 AM by danny36 » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 25, 2017, 05:32:15 PM »

The navpanel component extends from panel component, you can bind the 'onOpen' or 'onClose' events on it.
Logged
danny36
Newbie
*
Posts: 9


View Profile Email
« Reply #2 on: July 26, 2017, 12:34:20 AM »

I try with this but every time I click to change panels the event it's fired and show console.log message instead only when I switch to the #panel-classifica.

$('#panel-classifica').panel({
        onOpen: function(title,index){

            console.log('pannello caricato');
            return false;   // prevent from closing
        }
    });

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!