You need to sign in to do that
Don't have an account?
Javier Castro
Is there any way to put an icon inside an accordionSection as label?
Hi, I am new in Salesforce and now I am learning about lightning components.
I have this code:
Is there any way to do this?
Thanks in advance.
I have this code:
<aura:component controller="AcordeonControlador"> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:attribute name="lstAcc" type="List"/> <lightning:accordion> <aura:iteration items="{!v.lstAcc}" var="acc"> <lightning:accordionSection name="{!acc.Name}" label="{!acc.Name}"> <lightning:icon iconName="standard:account"/> <p>Telefono: {!acc.Phone}</p> <p>Dirección: {!acc.ShippingStreet}</p> <p>Ciudad: {!acc.ShippingCity}</p> <p>Estado: {!acc.ShippingState}</p> <p>Codigo postal: {!acc.ShippingPostalCode}</p> <p>Pais: {!acc.ShippingCountry}</p> </lightning:accordionSection> </aura:iteration> </lightning:accordion> </aura:component>I would like to set the label of the accordionSection as: icon + text.
Is there any way to do this?
Thanks in advance.
All Answers