Lightning

Helper in Lightning Bundle

Helper in lightning bundle is similar to controller where you write client-side javascript methods. These methods are more like reuseable methods which can be called from any controller method.

  • Helper is similar to controller but helper does not handle events.
  • Helper can be used to write reusable Javascript methods and these can be called from Controller section.
  • Helper functions also enable specialization of tasks, such as processing data and queueing server-side actions.
  • Helper methods are local to Component bundle.
  • Helper methods can be called from any controller javascript methods.
  • Declaring a helper method is similar to controller javascript method.
  • A helper function can pass in any arguments required by the function, such as the component it belongs to, a callback, or any other objects.
  • You can call a helper method from another helper method using this. operation.
Continue reading “Helper in Lightning Bundle”
Lightning

Controller in Lightning Bundle

Controller handle client-side events in lightning bundle. It’s a JavaScript resource that defines the functions for all of the component’s actions. A client-side controller is a JavaScript object in object-literal notation containing a map of name-value pairs. Function can represent an action event. Client-side controllers are surrounded by parentheses and curly braces. Separate action handlers with commas.

Continue reading “Controller in Lightning Bundle”
Lightning

Component in Lightning Bundle

Component is where you do actual UI design for the module that is being developed. Lightning has its own set of tags which are called aura tags.  When you create a component with above steps you see salesforce created a default tag for lightning component.

<aura:component >
	// User Interface Code Here.
</aura:component>
Continue reading “Component in Lightning Bundle”
Lightning

Introduction to Lightning Aura Component.

Salesforce introduced lightning platform way back in 2014 and to build custom applications on lightning platform salesforce introduced Lightning Aura Components in Sprint 2015. Salesforce lightning is best known for its modern UI interface and beautiful look, which is a Platform as a Service (PaaS) platform that allows developers to create add-on applications that integrate into main salesforce.com application. These third-party applications are hosted on Salesforce.com’s infrastructure. In this blog we will see what a Lightning Aura Component contains.

Lightning Component.

The Lightning Component framework is a UI framework for developing single page applications for mobile and desktop devices. Lightning includes the Lightning Component Framework and some exciting tools for developers. Lightning makes it easier to build responsive applications for any device like desktop, mobile, tablet etc. As per Sprint’19 release you can build lightning component using two programing models.

  1. Lighting Aura Component.
  2. Lightning Web Component.
Continue reading “Introduction to Lightning Aura Component.”