![](../images/blogpost/play with lwc recipes from sample gallery/header.jpg)
Hi Guys,Welcome back, Today we discuss about Sample Gallery and how can we use sample gallery apps into our salesforce orgs.
Lightning component framework is UI framework which helps to design dynamic web apps to mobile and desktop with high responsive
Lightning component framework helps to design out of box components with rich ecosystem and high performance. It is also Event-Driven architecture
Components is a piece of code(Building blocks of page) which helps to reusable to anywhere we want.
Lightning Supports (Aura) component-based framework.
Component Event Scope of this event is within itself or the parent component of this event, all the components declared within the parent component would get notified of this event( managed by the component itself).
Application Event is handled by all components that are subscribed to the event. These events are essentially a traditional publish-subscribe model.
Aura is UI framework to built dynamic web apps for mobile and desktop devices into lightning.
Salesforce Lightning Design System.
Lightning Bundle contains Component,Controller,Helper,style,documentation,rerender,design,SVG with it.
Yes, we need to custom domain to built lightning component. By using custom domain helps use to make our organization more secure while authentication.
No, Its Optional, But if need we can create with Namespace also.
Lightning Experience is a modern user interface that helps your sales reps sell faster and your service reps support customers more productively. Lightning Experience includes many new features and entirely redesigned pages, but not every Salesforce feature is supported in Lightning Experience.
Visualforce components are page-centric and most of the work is done on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile friendly.
Lightning Connect lets you seamlessly access data from external sources, side-by-side with your Salesforce data. You can pull data from legacy systems such as SAP, Microsoft and Oracle in real time, without making a copy of the data in Salesforce.
From Setup in Salesforce Classic, click Get Started in the Migration Assistant tile at the top of the menu. On the Turn It On tab in the Migration Assistant, click the button to switch it to Enabled. That’s it!
Lightning Connect enables your users to view and search records that are stored outside Salesforce, such as data in an enterprise resource planning (ERP) system. To connect to an external data source, Lightning Connect uses the Open Data Protocol (OData)
When a component is rendered or rerendered, the aura:valueRender event, also known as the render event, is fired. Handle this event to perform post-processing on the DOM or react to component rendering or rerendering. The event is preferred and easier to use than the alternative of creating a custom renderer.
Lightning makes it easier to build responsive applications for any device. Lightning includes these technologies: Lightning components give you a client-server framework that accelerates development, as well as app performance, and is ideal for use with the Salesforce mobile app and Salesforce Lightning Experience.
Application Event Scope of this event is throughout the lightning App and any component which has registered for this event would get a notification.
Component Event Scope of this event is within itself or the parent component of this event, all the components declared within the parent component would get notified of this event. System Event- these are the events fired by Salesforces system during the lifecycle of the lightning app.Component events are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.
Application events are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.
We need to implement the following force: lightningQuickAction so that we can use the component as a Quick Action
We need to implement the following force:appHostable so that we can use the component as a Tab
A Lightning component can be embed in any webpage using a very powerful and flexible feature, Lighting out. When used with Visualforce some complexity becomes simpler.
Lightning component can be added to Visualforce page in three steps: 1. We have to first Add the Lightning Components for Visualforce JavaScript library to your targetted Visualforce page using the tag. 2. Next we have to create and refer a Lightning app which is used to the component dependencies. 3. Lastly we need to write a JavaScript function which will finally create the the component on the page using $Lightning.createComponent()To call a child components controller method, we need to first create a aura:method which is publically accessible, aura:method is used to communicate down the containment hierarchy i.e. parent to child.
We need to first make a lightning tab which points to the lightning component we created and then we have to include that tab in the salesforce1 Mobile Navigation select list and the newly created tab to it.
Child component inherits the CSS from its arent we do not need to specify it for each component
aura:method is used to communicate down the containment hierarchy i.e. parent to child
Yes we can include one Lightning component in another Lightning component
There is no limit on number of components defined within an application by salesforce
No Lightning component is not replacing Visualforce, Visualforce is still supported by Salesforce.
Aura is a UI framework for developing dynamic web apps for mobile and desktop devices. Aura provides a scalable long-lived lifecycle to support building apps engineered for growth.Aura supports partitioned multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Java on the server side.
You can have namespace in your org but it is not necessary to have a namespace to develop lightning component.