While Salesforce releases new functionality three times a year, Lightning Components are becoming more an more important in Salesforce. In this post I want to give a quick overview of which kind of Lightning Pages we can create in Salesforce, and how do we have to design Lightning Components in order use them in such pages.
…Originally posted in medium…
Are you a Visualforce developer? Do you want to transition to #Lightning? Don’t be scared about it! Lightning Components is a new technology that can seem very different to Visualforce, as the way of programming is pretty different. Despite the learning curve is a bit sharped, once you have acquired skills on Lightning Components development, you will develop components at the speed of light, in comparison with Visualforce development! So, don’t miss the next 5 tips:
Last week I had the pleasure of giving a talk in the Woman In Technology user group in Paris. As the members of the group are mainly admins, and I am a developer, I wanted to talk about something that I was familiar with but that they could understood and use in their daily work. Having seen all the new Lightning features that come with Winter 17 release, I thought that a good option could be doing a summary of the many ways we can use Lightning Components in Lightning Experience and Salesforce1. This is, not talk about developing Lightning Components, but about configuring Salesforce to use them.
So, what’s the frightening Lightning Locker Service? It is a combination of security features that have been implemented for you in order your Lightning Components are secure, and other components don’t break yours! So, no frightening at all, right?
Today I want to talk a bit about Lightning Component Facets. What is a Facet? A facet is an attribute that we can define and place in a subcomponent, in order that another container component, which references the subcomponent, can fill up the facet space with some html code. Note that the subcomponent and container component are simply components, but I will call them in this way in order their relationship is easier to understand .
A facet attribute is similar to any other component attributes, but instead of having a primitive, collection, sObject or custom class type, it has an “Aura.Component” type. And instead of holding those kind of data, it will hold HTML markups or even another component.
Lightning Components attributes are used to:
- Pass information from one component to another component.
- Pass information from an app to a component.
- Pass information from an url query string to an app.
This is, attributes can be defined within a component or within an app. The purpose of this post is seeing examples of the types of attributes that we can define and how can we pass them from one component to another. Passing attributes from an app to a component would work exactly in the same way. For more information on dynamically setting attributes in an app through the query string, take a look at this.