mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Add function to get currently active tab index
This commit is contained in:
parent
d23d41ca50
commit
aa249cb6a2
@ -335,6 +335,20 @@ var et2_tabbox = et2_valueWidget.extend([et2_IInput],
|
||||
this.setActiveTab(this.selected_index);
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the index of the currently active tab
|
||||
*
|
||||
* @returns {number}
|
||||
*/
|
||||
get_active_tab: function() {
|
||||
return this.selected_index;
|
||||
},
|
||||
|
||||
/**
|
||||
* Sets the currently active tab by index
|
||||
*
|
||||
* @param {number} _idx
|
||||
*/
|
||||
setActiveTab: function(_idx) {
|
||||
this.selected_index = _idx;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user