atk4/atk4 — pull request #115 by DarkSide666 (2012-10-05 10:59:17+00:00)
Title: Update lib/View/Tabs/jUItabs.php

1) We need to call ->tabs() on init method to initialize them. Otherwise it's impossible to interact with tabs widget between initialization and rendering.
2) Replaced setSelect with more general setOption which can be used like ->setOption('selected','index_of_tab_or_id_of_tab_panel). If we don't initialize tabs() widget in init method, then JUI doesn't understand tabs panel #id as 'selected' option.
3) In render() added ->tabs('option',...). It's not so important, because I guess it's used in JUI tabs by default, but... that way it looks nicer :)

Tested this and now it's working for me in both cases - when using zero-based index or id of tab panel as selected value.