Questions tagged [aura-attribute]

Describes an attribute available on an app, interface, component, or event of the aura framework

Filter by
Sorted by
Tagged with
15
votes
3answers
4k views

Dynamically created component with aura:id, set as a Facet inside a parent component, is not found when calling find() and passing in aura:id

I would have expected that when a dynamically created lightning component is assigned as another component's attribute of type Aura.Component[], also referencing it in the parent component's markup ...
6
votes
2answers
2k views

Why won't my Lightning Component Attributes store entered value

2/15/2017 Update Per comment from Doug in one of the answers this is an issue with Locker service. I verified that with Locker disabled is works as expected... In Spring 17 as of today, with locker ...
3
votes
2answers
2k views

Unable to set an Inner Class as Aura Attribute type

Since SF update to Summer 18, we are facing this issue where an Inner Class could not be set as an Aura Attribute type. Lightning Component <aura:component implements="force:...
3
votes
1answer
1k views

Lightning Object binding via attribute

Can someone explain me, why object binding is not working? cmpOne.cmp <aura:component extensible="true" abstract="true" access="global"> <aura:attribute name="testObject" type="Account" ...
11
votes
3answers
2k views

Lightning: dynamic index in aura attribute with type List

related post I am having the same issue. Trying to access array with dynamic index arrayList[index] (index from aura:iteration), but Salesforce doesn't support that. Does anyone know how to do this?...
9
votes
1answer
5k views

Using a Map type attribute in aura:if

Trying to create a custom Navigation Bar and display menu entries based on user privileges. I defined this attribute in my component: <aura:attribute name="navItemPrivs" type="Map" default="{ ...
6
votes
1answer
570 views

How to prevent the component from being destroyed when it is referenced in multiple places?

I am referencing the component instance X within multiple other components dynamically. When I remove component instance X from one of the components, it is removed everywhere. The question is: how do ...
4
votes
1answer
5k views

Aura Attribute of Type Map is not working

I have declared an auro Map attribute in my Lightning Component but when i try to set key value pair to the Map in CLient-Side Controller it throws null error. COMPONENT CODE : <aura:component ...
2
votes
2answers
2k views

Lightning component not getting on load value

My lightning component - <aura:component access="GLOBAL" implements="forceCommunity:availableForAllPageTypes,force:appHostable"> <aura:handler name="init" value="{!this}" action="{!c....
7
votes
1answer
891 views

Binding Javascript Objects to Aura Attribute Collection Types

I was testing Javascript Object Types and trying to bind them to aura attribute Collection types unsuccesfully client-side (for the most case), so I was wondering if there is a reference with a set of ...
5
votes
3answers
5k views

Check component attribute exists

How can I check whether a certain attribute is existing within my component? Especially when I try to access a value dynamically like component.get("v." + fieldName) I want to make sure this is not ...
1
vote
1answer
959 views

Pass Parent reference to Dynamically Created Lightning Component

I'm trying to create a lightning component ("filterPanel") that would dynamically create some child components ("customFilter") I would like to pass the parent to children to avoid communicating with ...