3.2.0

Accessing individual tab on AW.UI.Tabs

How can we access each individual tab item ?
We are trying to change the width of each tab header according to the width of the content in the header.

var tabs = new AW.UI.Tabs;
var names = ["Summary by Cluster & Product", "Entity Cluster", "Counterparty"];
var values = ["div_grid1", "div_grid2", "div_grid3"];

tabs.setId("myTabs");
tabs.setItemText(names);
tabs.setItemValue(values);
tabs.setItemCount(3);
tabs.refresh();
tabs.setSelectedItems([0]);
cpuri
July 7,
var tab = tabs.getItem(index);
tab.setStyle('width', '100px');
Alex (ActiveWidgets)
July 9,
When I look through the documentation of Tabs at the folowing link :
http://www.activewidgets.com/aw.ui.tabs/

and check "Show All methods" There is no method like getItem() present on the documentation. Is there something missing in the documentation or I am looking at a wrong place.

Could you please guide ....
cpuri
July 9,
getItem() is an alias for getItemTemplate() method. When used without index it returns the item template, with index - the requested item object, which is a clone of the template.
Alex (ActiveWidgets)
July 9,

This topic is archived.

See also:


Back to support forum