I did something similar to expand children. If you have one child then ask it for the parent. Then ask the parent what other children it has. Like this toc.dataProvider.source.children.layerInfo.name
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.