Is it possible to directly call a Lightning component controller function during each aura:iteration? I have everything stored as custom metadata and the Apex controller filters out the sObjects that match the criteria. I pass the List attribute into the JS controller which loops to look if the current iterated item is in the list and if so, enable the field. I was wanting something like,
<aura:iteration items="{!v.allAPIFields}" var="item">
<!-- CALL CDEContentDocDetailsController.FindFieldsUpdate HERE? -->
<div class="slds-grid">
<div id="inputFieldsCol1" class="slds-col slds-p-horizontal_medium">
<lightning:input label="{!item}"
aura:id="fieldInput"
disabled="{!isDisabled}"/>
</div>
<div id="inputFieldsCol2" class="slds-col slds-p-horizontal_medium">
<lightning:input label="{!item}"
aura:id="fieldInput"
disabled="{!isDisabled}"/>
</div>
</div>
</aura:iteration>
My only other thought was to build a map and hoping I could use a "CONTAINS" in my component?