how to establish on html what the initial tab will be

I need to establish on html what the initial tab will be. Something along the lines of the below, which does not work.

        <config name="selected" value="selectedViewName"></config>

in

<div webix-ui view="tabview" id="perfilesTabs" autoheight="true" autowidth="true">
    <config name="tabbar">
        <config name="on" onaftertabclick="perfilesTabClicked()"></config>
        <config name="selected" value="selectedViewId"></config>
    </config>
    <div header="Search Perfiles" id ="perfilesSearchTab">
        <div ui-view="perfilesSearch" autowidth="true"></div>
    </div>
    <div header="Create Perfil" id="createPerfilTab">
        <div ui-view="createPerfil" autowidth="true"></div>
    </div>
</div>

where selectedViewId corresponds to $scope.selectedViewId on the controller.

Any thoughts?

duplicate thread, please follow discussion on http://forum.webix.com/discussion/7248/how-to-hook-up-to-tabbar-onaftertabclick-when-the-tabbar-was-defined-in-html#latest