How can I know active/selected tab

Hi,

How can I know active/selected tab of a tabview?

Thank you,
Alexander

getValue will return the id of active tab

var active_tab = tabview.getValue()

//or, a more verbose but a bit more logical
var active_tab = tabview.getTabbar().getValue();

HI,
It gives some id “view12423455”, How can I use it to get child views that are placed on that tab?

Thank you

In case of tabview, id of active tab can be used with $$ function to get the related view

var active_tab = tabview.getTabbar().getValue();
var subviews = $$(active_tab).getChildViews();

Hi Viktor,
When I check config subviews it shows type=“line”, id=“layout2”
I did not place layout, I placed scrollView.
I prefer not to know how tabview is structured.
I just want to get view that I placed inside the tab.

With above API you must get the content of the tab, not any inner structure, please check the next snippet
http://webix.com/snippet/485f7e5e

Hi Viktor,

Here is my structure: http://webix.com/snippet/632a52ee
Am I doing something wrong?

Thank you

Actually it is dawn on me, it is because I am putting rows and cols instead of view directly.
Please do not do anything unless I message you again

Now that I resolved that issue.
I see that scrollView does not return childviews that it contains
Please see snippet: http://webix.com/snippet/3634e718

Official fix will be included in 1.7.
If you need the fix ASAP - grab the updated package http://goo.gl/Osh44Y

when 1.7 is scheduled for?

May 15, and it will be version 1.8 ( 1.7 is already available ), my bad