hello there i have used the previous thread about allowing all layers in the layer list legend to be be expanded instead of closed and when i insert the code it doesn't impact performance but rather no layers show up. i am not sure if i have inserted the code incorrectly. Can someone help me with this that has done this before? i have inserted a picture of how the coding looks where the code is suppose to be inserted. rscheitlin
Devarsi,
What version of WAB are you using?
I am using version 2.2
Find the code block below (lines 2-9) and add lines (11 - 16):
//bind event
handle = this.own(on(layerTitleTdNode,
'click',
lang.hitch(this,
this._onRowTrClick,
layerInfo,
imageShowLegendDiv,
layerTrNode,
tableNode)));
setTimeout(lang.hitch(this,
this._onRowTrClick,
layerInfo,
imageShowLegendDiv,
layerTrNode,
tableNode), 300);