cashop.blogg.se

Lightning app builder salesforce types of components
Lightning app builder salesforce types of components













lightning app builder salesforce types of components lightning app builder salesforce types of components

Render:- render() function is called when the component is being initialized. Render, AfterRender, Rerender and Unrender. The rendering behavior can be of four types i.e. You can make calls to your helper methods also in renderer. It contains code that you want to execute before or after rendering of your component elements. To view the documentation of your component you have to link your org to component library. The documentation you create will be available at the lightning component library.

lightning app builder salesforce types of components

It contains the basic documentation of your components so that is easy to understand for someone who is using your application.

lightning app builder salesforce types of components

This style resource contains the custom style classes that you are going to use in your component. So it is best practice to separate your client side javascript from your server calls as the server calls run asynchronously. You write those methods in helper which are basically reusable and may be required to be called multiple times. The methods defined inside helper can be called from the controller and renderer, hence making it more reusable. It contains the javascript code for your component just like your controller but the purpose of helper is to segregate the calls to the server. It takes a doInit method that runs before your component html content is loaded (doInit is not required). It contains the javascript code for your component. Whenever your start building your component, you start by writing your component design. It contains the html like code of a component along with some lightning tags. Give name and description for your component and your component is created. To create Component : Open Developer console, Goto New > Lightning Component. The javascript code is written in the controller, helper and renderer part of the component bundle. The component uses JavaScript on the client side and Apex on the server side. A basic lightning component contains the design of a page in html with some lightning tags. The bundle contains all the resources related to a component like javascript controller, helper, renderer, css styles etc. In lightning components, a component is a bundle of code. It’s a modern framework for building single-page applications with dynamic, responsive user interfaces for Lightning Platform. Lightning Components is a UI framework for developing web apps for mobile and desktop devices.















Lightning app builder salesforce types of components