Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-components]

The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth.

2
votes
1answer
6k views

Lightning: How to call js controller function on one component from js controller function on another component?

I have the following instance of the component list, in its body I pass multiple instances of item components: <c:list id="testId" action="c.getItems"> <aura:set attribute="items"> ...
14
votes
2answers
2k views

Lightning: is direct API access on the roadmap?

I'm programming developer tools and an IDE. Right now, my code is based on Visualforce and JavaScript. As described here, I would like to convert most of my API callouts form APEX to JavaScript. Also ...
1
vote
1answer
435 views

CRUD with help Lightning Component

Please show me example how work with CRUD in Lightning Component: I want to create order system for restaurant. User is waiter. He make all CRUD operation with orders. There are "close" and "open" ...
2
votes
2answers
58 views

Lightning documentation doesn't allow to mark + copy + paste on mobile android device

I'm trying to quote some stuff from the Lightning docu using my mobile device (android, chrome) to answer questions on SFSE. Update: this issue seems not to exist in iOS https://developer.salesforce....
15
votes
4answers
2k views

Best Practice - Lightning JS (Code reuse, testing frameworks and IDE support)

I asked about the difference between controller and helper and it prompted me to ask another, more specific set of questions: What is the best way to reuse JavaScript code across Lightning Components?...
11
votes
4answers
5k views

Lightning Apps - Difference Between Controller And Helper?

I have just recently started building Lightning Applications, and I do not understand why there are two Javascript components in each bundle. What is the difference between the controller and the ...
28
votes
5answers
5k views

(Why) Should I Use Lightning Apps?

I have looked through the documentation and Trailhead, and I have started building some Lightning Applications. I still do not understand what makes Lightning Applications better than standard ...
3
votes
2answers
3k views

Adding a ui:tab aura component in Lightning App

Working in a Lightning App, and not sure if all Aura components are supported. I am currently trying to implement ui:tabset, as follows: <aura:component > <ui:tabset class="tabset"> ...
5
votes
1answer
3k views

URL to call lightning component with parameter in salesforce1 using custom button or link

i want to call lightning component with parameter in salesforce1 using custom button or link. How can i achieve this ?
19
votes
5answers
13k views

How to navigate from one lightning component to another lightning component?

I have tried several ways to do this and have not reached enlightenment. I have the same problem as outlined in this question Navigation between components in lightning I was optimistic about using ...
1
vote
1answer
3k views

Lightning creation of UI components dynamically (programmatically) failed

Lightning creation of UI components dynamically (programmatically) failed We created a component with .cmp file with a section below: <div aura:id="ElementHere"></div> Then in the Helper ...
2
votes
1answer
981 views

Deploy Lightning components without namespace

Basic question but want to make sure that I have the right answer. The Lightning FAQ's are clearly stating that Lightning Components can (at the moment) only be developed on a developer edition, using ...
4
votes
5answers
5k views

Navigation between components in lightning

I am trying to build navigation from one component to another in a Lightning application. Following this answer How to set up views and navigation in Lightning? got me working with one exception, the ...
4
votes
1answer
497 views

Linking of Lightning

How to link the lightning components .Like Suppose i have a two Lightning page Person Account and corporate Account . I want to link these account pages. How it is possible.
1
vote
1answer
123 views

How to implement 'email this', 'chat this' and 'create todo' about this buttons in a salesforce lightning component page?

I have built a series of lightning components that we will use as pages in salesforce 1 mobile application. One of the pages offers the user the ability to share our pages content with their group via ...
7
votes
1answer
3k views

Reload lightning component when clicking back from standard Opportunity Page

I have a lightning component in it's own page in Salesforce1 that allows me to click through to the standard Salesforce opportunity page. (The component currently just shows basic Opportunity ...
8
votes
1answer
1k views

Standard Controller with Lightning

Is there a possibility where I can create a Lightning Component without writing a Custom APEX Controller? For example in Visualforce page we could use a StandardController and implement a standard ...
2
votes
1answer
2k views

flexipage:availableForAllPageType Interface in Lightning Component

I am trying to configure my Lightning component to show up on the Lightning app builder, and tried to implement the interface as listed in docs, <aura:component controller="stech....
4
votes
2answers
422 views

Nameclash: http://aurajs.com in not https://github.com/forcedotcom/aura

Today I searched for "aura js" via Google and in the searchbox at Github and got results pointing to http://aurajs.com - which does not work: Site Disabled Oh no! It looks like this Pages site ...
3
votes
1answer
217 views

Recommendation on Javascript Observer Pattern? [closed]

Javascript models become more and more important. In different scenarios I'm encountering the challenge to have a Javascript object model, which has to be synchronized n-ways e. g. to different UI ...
1
vote
0answers
213 views

Lightning - static resource deployment - javascript code

I am using the migration tool to deploy javascript files containing logic to display charts in a lightning component. To test my code I need to set the chrome developer console to not cache files to ...
2
votes
1answer
105 views

Opening Aura framework

How to open aura framework/platform? Is it needed to download aura? Please point me if anyone knows any information.
16
votes
3answers
7k views

Lightning - How to use force:inputField?

I've seen that since Spring'15, there are new standard components available in Lightning. I've been looking for a component that would be a sort of apex:inputField, but in Lightning. The force:...
0
votes
1answer
373 views

“An unexpected error occurred ” while adding select list to the Salesforce lightning component

it giving me an error like "Failed to save undefined: An unexpected error occurred. Please include this ErrorId if you contact support: " after adding the following components. <ui:inputRadio> ...
1
vote
2answers
2k views

How to add a lightning component to salesforce1 navigation menu?

I have created a lightning component and I need to add it to salesforce1 app. I'm trying to add the lightning component through Lightning Component Tab. But the lightning component that I have created ...
3
votes
1answer
467 views

CSS is not supported after adding Lightning component to the salesforce1 app

I have added the interface "flexipage:availableForAllPageTypes" but it is showing an error like "Failed to save undefined: No INTERFACE named markup://flexipage:availableForAllPageTypes found : " ...
1
vote
1answer
92 views

Is it possible to inject javascript without being need to add some visual component?

So, I have a Custom Link pointing to some static resource, this link is flagged as executable javascript. Then, I'm associating this link with custom component.Those are actually steps described here....
5
votes
3answers
6k views

Is there any way to add lightning component to a page layout?

I need to add lightning component to opportunity page layout. Like mobile cards. Is there any way to add lightning component to the page layout?
2
votes
3answers
3k views

How to add script files to a salesforce lightning application?

When I'm adding script files to a lightning component i'm getting an error as 'script tags only allowed in templates: Source'. Is there another way to add script links to the lightning application?
5
votes
2answers
924 views

In Lightning is there Inline-Editing like we know it from the Aloha-UI or VF pages?

Our clients are using inline-edit quite heavily, it saves a lot of time and feels also way better than pressing "Edit" to get in the full edit mode all the time. Is there a similar functionality ...
7
votes
2answers
5k views

Accessing a Lightning Component from Salesforce1 as a Community User

I have created the sample "Expenses" lightning component from the Lightning Components Developers Guide Quick Start (Winter 15 version), and it works fine. I created a Lightning Component Tab and ...
4
votes
1answer
653 views

Navigating to Opportunity related Activities List in Aura

Trying to use force:navigateToRelatedList to navigate to an opportunitys' related activity list on a click event within an aura/lightning component. var evt = $A.get("e.force:...
7
votes
1answer
1k views

How to manage offline data within a lightning components ?

Can you share some sample of lightning component storing data on device and managing offline ?
3
votes
1answer
1k views

How to create pick list of state and country in Lightning component?

I am making an component in lightning. i want to know how can we use the state and county picklist in this particular code. secoundly the functionality of save and cancel button is also not working ...
3
votes
2answers
617 views

Lightning components are client side component or service component and how?

Can anyone explain whether lightning components are service side or client side component?
1
vote
1answer
459 views

When will Lightning components be available for Android phones?

Lightning components works well with iOs whereas does not work with Android. When will this feature be available for Android?
4
votes
1answer
846 views

How can we access Lightning Components via MetadataSevice.cls from within APEX and Visualforce

This is a spinoff form a question of: Are there any plans to update ToolingAPI.cls for APEX to v32 in order to support Lightning Components? Here we focus on MetadataAPI (in contrary to the OP which ...
6
votes
2answers
824 views

Use dynamic namespace references in Lightning Components

It was mentioned here at SFSE (and following the examples in the Lightning Developer Guide it seems to confirm) that right now hardcoded namespace references are quite common or even necessary. As far ...
8
votes
3answers
3k views

How to enable Salesforce1 lightning app builder?

I am working on salesforce 1 lightning platform.I am using developer org. I want to enable lightning app builder tool in my org, but it is in pilot. I read one of the in which it is mentioned that to ...
1
vote
1answer
703 views

Lightning Component Destruction

At what point does a Lightning component get destroyed ? More specifically we have been modelling "page" to "page" navigation using navigateToComponent events but it appears that old components we ...
3
votes
2answers
964 views

Lightning and Angular via AuraNG

We have been doing some prototype work involving Lightning, Angular and AuraNG and we have a few questions. Currently aurang:region initialises an angular module and makes it available via the ...
2
votes
1answer
187 views

Can we create a namespace in Enterprise Edition? How can we create a tab for Lightning App?

I have two basic questions. Can we create namespace in Enterprise Edition? I need to develop Lightning components. As far as I know namespace are tied to managed package, and it can be created in ...
1
vote
1answer
155 views

Calling ToolingAPI to save an AuraDefinition using PATCH via JavaScript possible?

I'm trying to save an AuraDefinition from within a native Visualforce app. Therefore I following @MartyC. suggestion here: Lightning ToolingAPI BETA Documentation As an unfortunate PATCH requests ...
4
votes
3answers
369 views

How to gain access to SF1 Platform App builder and Process builder?

I've seen the recent videos of Dreamforce about the new Lightning and other SF1 platform products. Can someone guide me to get the access to the Lightning App builder and the Inspection/process ...
4
votes
1answer
125 views

Are there any plans to update ToolingAPI.cls for APEX to v32 in order to support Lightning Components?

Unlike MetadataAPI the ToolingAPI APEX class still refers to version 30. Please note this question is not about ToolingAPI itself, but about the APEX wrapper class project to make ToolingAPI available ...
3
votes
2answers
110 views

Lightning ToolingAPI BETA Documentation

Thanks to @DougChasman we have learned here that both ToolingAPI and MetadataAPI are fully supporting AuraDefinitionBundel and AuraDefinition right now as BETA and we can start to use them. Doug also ...
5
votes
3answers
978 views

Lightning access via ToolingAPI or MetadataAPI

I assume there is no official support in the APIs right now since Aura Components are in BETA. The choice of developer tools is a bit narrow (Developer Console and Sublime Lightning) and I want to add ...
7
votes
2answers
1k views

Installing Dave Carolls Sublime Lightning

I'm starting with Aura/Lightning today and want to install this plugin for sublime on Windows 64bit So I followed the instructions in this video here https://www.youtube.com/watch?v=A_sUTfeGKxw It ...
4
votes
1answer
1k views

Cannot load bootstrap css in Lightning App

I'm following the "Lightning Components Developer's Guide" and when I try to preview my app I get always a CSP (Content Security Policy) error that the css file is blocked for loading. I've read a ...
2
votes
3answers
2k views

Error: ERR_TOO_MANY_REDIRECTS while loading Lightning App

I'm getting ERR_TOO_MANY_REDIRECTS error in browser console while opening the lightning app. This doesn't affect the functionality though, it is making delay in loading completion of the app. I'm ...