We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

custom event on header item

Hi,

I bind a custom event on header item.
If headerPosition = top, left or right my custom event works fine. But if headerPosition = bottom it does not fire.
Can you help me, please?
Thanks
Stefano

var $tabs = $('<div class="tabs" />').appendTo($vidmpag);
var $ul = $('<ul />').appendTo($tabs);

$.each(list, function (index, item) {
var $li = $('<li />').attr('id', "tab" + index)
             .appendTo($ul);

var $a = $('<a />').text("tab" + index)
     .appendTo($li)
     .attr('rel='nofollow' href', '#tab' + index)
     .bind('myEvent', $a, function (e, data) {
 debugger;;
     });

$('<div />').attr('id', 'tab' + index)
  .appendTo($tabs);
});

$tabs.ejTab({
headerPosition: ej.Tab.Position.Bottom,
itemActive: function (args) {
$('a', args.activeHeader).trigger('myEvent', args });
}
});

1 Reply

SS Saranya Sivakumar Syncfusion Team February 10, 2015 10:20 AM UTC

Hi Stefano,

We were able to reproduce the problem and we considered this issue “Event doesn’t get fired while header position of Tab as Bottom” as bug, also have logged a report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,

Saranya.S



Loader.
Live Chat Icon For mobile
Up arrow icon