EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 16, 2024, 09:47:38 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
How to: events in panel
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to: events in panel (Read 4477 times)
danny36
Newbie
Posts: 9
How to: events in panel
«
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
Re: How to: events in panel
«
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
Re: How to: events in panel
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...