private function expandAll(item:TocItem):void { item.collapsed = false; expandChildrenOf(item, true); if(item.isGroupLayer()){ for each (var item2:TocItem in item.children){ expandAll(item2); } } }
//if(_expanded) expandItem(tocItem, true, true, false, null); if(_expanded) expandAll(tocItem);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.