You need to sign in to do that
Don't have an account?
Shatrughna Salunke
aura iteration list of record display in single row with comma separated values in cmp
Hi All,
want to be list of record in single row with comma seprated in lightning cmp.
<aura :iteration items="v.detAllData" var="v">
<ui:outputdate value="{!v}" format="dd/mm/yy" />
</aura;iteration>
courrent output:
24/06/2020
1/01/2018
10/12/2012
looking output as below.
24/06/2020 ,1/01/2018, 10/12/2012
want to be list of record in single row with comma seprated in lightning cmp.
<aura :iteration items="v.detAllData" var="v">
<ui:outputdate value="{!v}" format="dd/mm/yy" />
</aura;iteration>
courrent output:
24/06/2020
1/01/2018
10/12/2012
looking output as below.
24/06/2020 ,1/01/2018, 10/12/2012
By default, the behaviour of the aura:iteration is to show the new value in a new line I don't think this would be possible simply by getting a list and displaying I think you might have to manipulate the list of values you receive and then display them.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.