Categories | Question details Back To List | ||
Tabbar Doubleclick event Is there a way to attach a double-click event to a tab? thanks Answer posted by Support on Feb 11, 2008 02:13 There is no such event, the only way to handle it - add small code modification. In dhtmlxtabbar.js , line 155 this._tabAll.onclick = this._onClickHandler; add next to it this._tabAll.ondblclick = function(e){ var id = (tabbar._getTabTarget(e.target||event.srcElement)).idd ...any custom code here.... }; Answer posted on Feb 12, 2008 04:05 How can I get it to fire a custom event similar to setOnSelectHandler? My JavaScript skills are just not there. Answer posted on Feb 12, 2008 04:46 How can I get it to fire a custom event similar to setOnSelectHandler? My JavaScript skills are just not there. Answer posted on Feb 12, 2008 07:29 this._tabAll.ondblclick = function(e){ var id = (tabbar._getTabTarget(e.target||event.srcElement)).idd if (tabbar.on_dblclick) tabbar.on_dblclick(id); }; later you can use function my_dbl_click_code(id){ .... } tabbar.on_dblclick = my_dbl_click_code; |