New answers tagged

0

What you're trying to do isn't allowed in Aura. Instead, you need to convert your data into a an Array of Arrays. var output = listContent.map( row => fields.map( field => row[field] ) ); Which you would then iterate over each row, and in each row, you'd iterate over each element. <aura:iteration items="{!v.output}" var="row"> <...


1

i achieved by using onclick event on child tr instead radio button. i used HTML data-attribute to bind parent row index and child row index, so i got both indexes when ever click on any child row then CopyValues function calls and bind the selected child row values to parent row. cmp <aura:attribute name="OrderItems" type="List" /> <aura:...


0

Simple and elegant solution would be to extract table row to seperate component, pass whole single child as parameter, and do business logic inisde every single row component using init or change handlers. In child component You can easily declare Boolean attribute, and write nice logic to handle its value, and display via 2-way-binidng, avoiding any "dirty" ...


Top 50 recent answers are included