Select to view content in your preferred language

How to add Expand All Layers/Collapse All Layers to LayerList widget in Web AppBuilder?

6345
13
06-14-2016 11:37 AM
MattJunker
Emerging Contributor

There is an Enhanced LayerList widget for the Flex Viewer. Is there a similar Enhanced LayerList widget for Web AppBuilder? My client would like Expand All Layers/Collapse All Layers functionality in a context menu for the LayerList widget, as they did in their old Flex Viewer app. Any solutions or work-arounds for this issue? Thank you.

0 Kudos
13 Replies
DerekLaw
Esri Esteemed Contributor

Hi Matt,

FYI, the ability to expand/collapse all layers will be part of the core Layer List widget in the next Web AppBuilder update in ArcGIS Online (which is planned for this week).

Hope this helps,

RebeccaStrauch__GISP
MVP Emeritus

Thanks for that note Derek.  I added it to the resource list.  Typically the dev edition follows a few weeks after.  Do you know of an ETA on that?

MattJunker
Emerging Contributor

Thank you Derek!

Will the expand/collapse layers update apply to the Web AppBuilder Developer Edition as well as ArcGIS Online?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Matt,

Yes the WAB Dev comes out a few weeks after the online version.

DerekLaw
Esri Esteemed Contributor

All,

As Robert Scheitlin, GISP​ noted, the update to Web AppBuilder Developer Edition follows approx. 3-4 weeks after the ArcGIS Online update.

> Will the expand/collapse layers update apply to the Web AppBuilder Developer Edition

Yes, in the next update.

Hope this helps,

AnaHiraldo-Gomez
Occasional Contributor

So when is the next update?  

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ana,

   The ability to expand all layers is part of the 2.1 and above WAB just click on the layerList menu button and choose "Expand All Layers". There is yet to be a configuration setting to have all layers expanded by default though.

AnaHiraldo-Gomez
Occasional Contributor

"There is yet to be a configuration setting to have all layers expanded by default"  This is precisely what we want.  For whatever reason, the average user does not understand they have to click on expand all layers unless they they training. 

RobertScheitlin__GISP
MVP Emeritus

Ana,

   Well if you are using 2.3 WAB Dev then look at this thread for the code changes to make that happen:

https://community.esri.com/thread/189567-show-legend-in-layer-list-widget-by-default#comment-663376