Questions tagged [aura-iteration]

questions regarding the aura:iteration component. This coomponent iterates over a collection of items and renders the body of the tag for each item.

Filter by
Sorted by
Tagged with
7
votes
3answers
11k views

component.find an aura:id item created in aura:iteration

I am building a menu component. One menu-item is a sub-menu with list of opportunities, this list is created with aura:iteration over a list of opportunities. When selecting a menu or a sub-menu, I ...
1
vote
1answer
12k views

Using an aura:iteration index as an array accessor [duplicate]

I am creating a lightning component that is a Day-of-the-Week picker widget. it will allow a user to enable or disable days from a list. My front has two attributes that are useful here - a list of ...
12
votes
4answers
3k views

How do we identify which lightning input is updated in an iteration?

I'm trying to construct a page that allows users to edit records, and it should be in SLDS, so I'm trying to use lightning:input to minimize the amount of code I need to write. Ultimately, a method ...
5
votes
2answers
902 views

Why aura:iteration doesn't re-render when you add element to parent component's list?

I declared a parentComponent with an attribute of type list. I am passing that list to child component. In my child component, I am iterating over that list using aura:iteration . Also I provided a ...
3
votes
0answers
643 views

Lightning “change” event doesn't fire in aura:Iteration

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...
0
votes
1answer
26 views

Seems there is something wrong with my <aura:iteration> as Same Account record is displayed twice in my slds table

<table class="slds-table slds-table--bordered slds-table--cell-buffer" style="margin-top:50px;"> <thead> <tr class="slds-text-heading--label"> <...
1
vote
1answer
64 views

Radio Button within Iteration - When user selects radiobutton, store the associated sourceId in attribute 'accountId'

Currently, I'm iterating through a wrapper that includes sourceId (aka accountId) and Opportunity Name, etc. When the user selects a radio button, I want to capture that sourceId in an attribute at ...
0
votes
2answers
56 views

Lightning components - Initiating attribute with controller with multiples sObjects

I'm Working on Lightning components I would like to add some values in my App, by its controller (aura:handler) I'm trying with this : component.set("v.objetsCamping", tabObjets); But it doesn't ...