EasyUI Forum

General Category => General Discussion => Topic started by: contestant on April 15, 2015, 08:25:12 AM



Title: Use onAdd event specially for every tab
Post by: contestant on April 15, 2015, 08:25:12 AM
Hello

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

Thanks


Title: Re: Use onAdd event specially for every tab
Post by: stworthy on April 15, 2015, 06:28:18 PM
The 'onAdd' event fires when a new tab panel is added. Try this:
Code:
$('#tt').tabs({
  onAdd: function(title,index){
    //...
  }
});