I'm trying to get the attribute inspector to work with multiple layers, but I'm unsure of how to go about the layInfos.
var layerInfos = [{
'featureLayer': petroFieldsFL,
'showAttachments': false,
'isEditable': true,
'fieldInfos': [
{'fieldName': 'SERVICE_ID', 'isEditable':true, 'tooltip': 'Current Status', 'label':'Status:'}
]
}];
var attInspector = new AttributeInspector({
layerInfos:layerInfos
}, domConstruct.create("div"));
Do I need to create an attribute inspector for each layer?