Apr 30, 2013, 6:14 PM
[CLOSED] Layout setActiveItem() replacement?
Hi,
I have the following v1.x code related to a Panel named PanelExplorer with AccordionLayout set:
I have the following v1.x code related to a Panel named PanelExplorer with AccordionLayout set:
PanelExplorer.layout.setActiveItem(App.MenuPanelFile);
PanelExplorer.items.each(function (item) {{
if (item.menu.rendered) {{
item.clearSelection();
}}
}});
var menuId=getMenuId(); // Get a valid menu ID
PanelExplorer.getComponent('MenuPanelFile').setSelection(menuId);
Aside from prefixing the objects with App, what changes are due for it to work in v2.2? The layout property is now string but getLayout() method is missing from the panel instance.
Last edited by Daniil; May 02, 2013 at 11:35 AM.
Reason: [CLOSED]