How do I get to the appropriate legend icon data from within listItemCreatedFunction and add the icon graphic to a Layerlist item?
I am adding a legend to a LayerList with the legend button to the right of the layer title, and the legend icon graphic below the layer title.

added with the code here
var featureLayer = map.layers.getItemAt(2);
if (item.layer.type != "group") {
// don't show legend twice
item.panel = {
content: "legend",
layerInfos: [{
layer: featureLayer,
title: "blah"
}],
open: false
};
} // end type
I want to change this so that the legend icons are added to the LayerList Listitems instead.
(image is from a web app. builder. I am not using wab)
