EasyUI Forum

General Category => General Discussion => Topic started by: contestant on April 15, 2015, 06:34:28 AM



Title: use custom event for every tab
Post by: contestant 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


Title: Re: use custom event for every tab
Post by: stworthy 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>