EasyUI Forum
October 17, 2025, 01:40:02 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: use custom event for every tab  (Read 8280 times)
contestant
Newbie
*
Posts: 40


View Profile Email
« on: April 15, 2015, 06:34:28 AM »

Hello

How can use events like "onClose" special for every added tab no public for tabs plugin options.

Thanks
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: April 15, 2015, 07:45:33 AM »

Please try this:
Code:
<div class="easyui-tabs" style="width:700px;height:250px">
<div title="tab1" data-options="
closable:true,
onDestroy:function(){
console.log('close tab1')
}"></div>
<div title="tab2" data-options="
closable:true,
onDestroy:function(){
console.log('close tab2')
}"></div>
</div>
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!