Default Layer Expansion in Layer List of WAB DE 2.11

620
1
Jump to solution
03-01-2019 11:46 AM
TimHayes
Regular Contributor

Is it possible (and how can it be done) to show the 1st Layer in the Layer List Widget as default expanded, and all sublayers as default compressed?

I have gone here (Layer List—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers) to look for a configurable attribute that would do something like this, but seems its not there.

See the images here for what I mean:

This the default. I know there is a function in the Layer List Widget that expands all layers, but I only want to expand the 1st one in the image here. 

Here is what I want the Layer List to look like when it is first opened:

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Tim,

  Sure I have answered that one before, and I just retested to make sure it still works in 2.11.

https://community.esri.com/thread/187292-layerlist-widget-expand-on-startup 

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Tim,

  Sure I have answered that one before, and I just retested to make sure it still works in 2.11.

https://community.esri.com/thread/187292-layerlist-widget-expand-on-startup