i have two lists: 1 is id list, the second is names list. both have the same amount of values. i want to iterate over those two lists using an index, and create tabs.
i dont know how to access the lists using index.
The code is an idea of what i want to implement, i know its incorrect syntax wise, i just dont know how to write it:
<aura:component implements="forceCommunity:availableForAllPageTypes,flexipage:availableForAllPageTypes,force:hasRecordId,force:appHostable,force:hasSObjectName">
<aura:attribute name="reportIdsList" type="String[]" />
<aura:attribute name="reportNamesList" type="String[]" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<lightning:tabset class="slds-tabs_card slds-tabs_default">
<aura:if isTrue="{!v.reportIdsList != null}">
<aura:iteration items="{!v.reportIdsList}" var="item" indexVar="index">
<lightning:tab class="slds-tabs_default__item">
<aura:set attribute="label">
{!v.reportNamesList[index]]}
</aura:set>
<iframe src="https://varonis--dev.lightning.force.com/apex/PowerBIReportA?repId={!v.reportIdsList[index]}" width="100%" height="900" style="overflow: hidden;"/>
</lightning:tab>
</aura:iteration>
</aura:if>
</lightning:tabset>
</aura:component>