aura-iteration's questions - English 1answer

50 aura-iteration questions.

I cant set value on div during aura iteration, the reason why I need to set it on a div cause the div is writable contentEditable = true;I want to display value there so it can be edit it. <aura:...

<aura:iteration items="{!v.List}" var="item" indexVar="i"> <div id="{!v.globalId + '_option'}" data-index="{!i}" data-id="{!item.Id}" onclick="{!c.jsFunction}"><text-...

I would like to know if it is possible to evaluate the expresion not comparing to a constant but instead to another variable, like the iteration variable from aura:iteration. I want to evaluate the ...

The requirement I have is to display a list of items in card style panels with three on a row and 30px borders between them. Here is the basic code: <aura:iteration items="{!v.paginatedList}" var=...

I have an attribute that I am rendering to a table inside an aura:iteration with the following code: <aura:attribute name="licenceassocparties" type="String[]" default="false" access="PRIVATE"/>...

I use document.getElementById with the id attribute to locate elements in my component. I cannot use component.find and aura:id because the elements are generated from an iteration. This iteration is ...

The goal is to apply a CSS style to iterated <div>s to display that the field has been modified. I think I am close but my indexVar is returning the error "Cannot read property 'dataset' of null"...

I need a way to keep track of each iterated lightning:inputField so that any changes made to that specific field is reflected by a CSS style change. Markup <aura:iteration items="{!v....

I'm very new to Salesforce, so my apologies if my approach is all wrong. I want to display a list of buttons with images using a lightening component in Community Cloud. The list comes from records ...

How would one create a two list column and be populated with an iterated list. Right now, both columns just repeat themselves with the same {!v.Name} data. I would like to remove the repetition and ...

I have an iteration to set up datatables in slds accordions in my lightning component: <ul class="slds-accordion"> <aura:iteration items="{!v.definitionObjects}" var="objStats"> ...

I have a map attribute that holds the following map<string,list<SObject>> I want to iterate over the map and pass the list down to a child component but keep getting an error. This is ...

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, ...

Below is the link of format JSON example I am trying to bind the data which is there in results-> items using aura:iteration. Here is my code for that. <aura:iteration items="{!v.newassets....

The aura framework and lightning:recordData currently (Summer 18) support only single object retrieval. Let's assume I got a listItem.cmp into which I wired force:recordData in VIEW mode or a ...

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 ...

I'm making an edit records component on Opportunity where I display fields from related objects like Account, the Primary Contact and Contact Role only if their value are null. For the Account and the ...

I am facing a very strange error when applying change event on UI:InputText that is inside Aura:Iteration. When I focus out of the Input it throws me below error. This page has an error. You might ...

I've created a simple lightning app which has an aura:attribute of type Object[] with 3 objects in it. I'm binding their selected property to a lightning:input of type checkbox. When I update the ...

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 ...

I have a parent component which iterates over a child component and has a save button. Parent.cmp: <aura:attribute name="casAgentList" type="Availability_Of_CAS_OneMDCS__c[]"/> ... <...

I have potentially multiple lookup fields on an object. So I want to display my a lightning:card for each one with the related information on the Object's page that has that record in the lookup field....

I'm facing trouble with <force:recordData>. I have a list of custom objects displayed in the form of table over <Aura:iteration> Out of that list, when a button is clicked, a certain ...

I am showing list of opportunity in a Lightning component. And I want to display them if the opportunity list size > 0 . i.e here ( opportunityList > 0) <lightning:select name="...

The goal is to pass a "comment__c" rich text field on an iterated object to its JS controller to perform a string operation on it before it's returned to limit a tooltip it is to appear into 250 ...

Is there a way, while iterating through a List of field names to retrieve the corresponding record field value? Ex: <aura:attribute name="layoutAPIFieldsList" type="List" /> <aura:...

How could it be accomplished to display the field name above the input field if the field is disabled? As of now, if the field is disabled, so is the e.fieldName attribute. <aura:iteration items=...

I'm working a lightning component, which has a requirement of displaying a dynamic table. For that, I need to iterate over a map (Map>) and display the values. So, How can I retrieve map from apex ...

I'm trying to get the ID of an element that is in a loop to trigger an event, but I can't get the ID nor content of the tag. I've done something similar on visual force pages, but I did it ...

I have a Helper function with the following JSON: getUsersVacationItemsList : function (component, event) { var tableRow =[ { 'commonName': 'xpto', 'calendar': [ {...

I'm trying to have my lightning:button display a different variant based on if it's clicked or not. I'm iterating through a array where each item has its button. This is the component <aura:...

Recently I got a very weird issue with aura:iteration and don't know how to solve it yet. If I sort my list of element to ascending order and delete some element from the list then if I try to sort ...

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 ...

I am displaying a list of accounts and have a checkbox next to those accounts. I would like to process the information from those accounts based on if the checkbox is selected. Below is my component,...

I have the following object in Javascript: [{"Name" : myName, "Sub" : [{"Name": mySubname, "Items" : [{"Id": a, "Name": b},{"Id": c, "Name": d}, ...] }, {...}, ....

I have a list of records displayed on lightning component using There are Save buttons corresponding to each record. The fields of the records are editable. I want to save the record, the ...

I have a dynamic checkbox generator which is bound by city on the account which works fine all cities are rendered with a corresponding checkbox. When I select the checkbox a city is added to a list ...

I have an iteration from where I want to display a component and cant seem to get the values displaying from my other component Error: Unable to get value for key 'opleiding.Id'. No value provider was ...

The issue is that when I click on save, the data is not being saved... In the same object, I have a checkbox wich is being correctly saved, so I don't know what could be happening. I have next select: ...

<aura:iteration items="{!v.contacts}" var="item" indexVar="idx"> <aura:if isTrue="{!lessthan(idx,5)}"> <ui:outputText value="{!ind}" /> </aura:if> </aura:...

I'm trying to retrieve elements using document.getElementsByClassName("") within the afterRender function. This works as expected with normal elements. However, I can't seem to retrieve elements being ...

I want to get data from child component in parent component, child component is present inside inside auar:iteration in parent component and elements are rendered in child component using aura:if. I ...

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 ...

In my code, I am getting a list of Object from apex controller, and populating the same into an aura attribute paginationList. On the below line, I am getting the error: component.set('v....

I'm Displaying two types of lists in Lightning component. One is List of OpportunityTeamMember and other is List of case. But when I'm iterating over List of Opportunity team members I'm able to see ...

<fieldset class="slds-form-element slds-m-top_xx-large form-fields-width borderForBoxes"> <LEGEND class="slds-form-element__label tlabel slds-text-body_small"> ...

Today I'm giving the new v41.0 <lightning:outputField> a try. I want to use it massively inside an <aura:iteration> to build a data-table and want to accomplish the following: ...

How can I use the new v41.0 <lightning:outputField> inside an <aura:iteration>? I have tried this <aura:attribute name="Opportunities" type="Object" default="{}" /> <aura:...

I have a 2 date field where user can enter 2 dates and I iterate between the 2 dates. each date will bring a checkbox of am or pm. I wanna get the value of each date and if either checkbox was checked ...

Scenario In Visualforce we had strong patterns for implementing the rendering of hierarchical structures. As a simplified example (standing for many other use cases) let's say we want to show all ...

Related tags

Hot questions

Language

Popular Tags