Skip to content

Commit 85d6480

Browse files
committed
Tabs:
- Adds a new method for get the active tab idx. See #75054
1 parent d7ebc48 commit 85d6480

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/elements/Tabs/Tabs.coffee

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ class CUI.Tabs extends CUI.SimplePane
248248

249249
return found_tab
250250

251+
getActiveTabIdx: ->
252+
@__tabs.indexOf(@getActiveTab())
253+
251254
getActiveTab: ->
252255
@__active_tab
253256

0 commit comments

Comments
 (0)