I would like to modify the Legend widget to open when a layer is activated. Since the Layerlist and Legend are 2 different widgets is there a way to do this?
Sure just follow this thread about opening a widget from code:
Web AppBuilder - Open in-panel Widget Programmatically
Retrieving data ...