Home Education Quick guide on Lightning or Strike in salesforce

Quick guide on Lightning or Strike in salesforce

Salesforce Lightning is a place which  provides tools to build next-level User Interface(UI) and User Experience( UX) in Salesforce. This helps organizations create a modern productivity-boosting user experience.

Topics to lookout :

  1. Introduction to Salesforce Lightning
  2. Features of Lightning Experience
  3. Lightning Component
  4. Domain Management
  5. Salesforce Lightning Application
  6. Tokens
  7. Tokens Bundles
  8. Conclusion
  9. FAQ(Frequently Asked Questions)

Salesforce lightning Experience

The term ‘lightning’ Define  to real lightning (the one  that comes with storms) which indicates the power and strong feature  of this tool.

This Experience is used to create fast, beautiful, and unique user experience so that sales teams and sales representative can sell faster and be highlight on what’s more important.

This Experience uses the open-source framework known as Aura. However, it has a completely re-designed framework that creates a modern user interface for the user.

In other words, Lightning is also known as Force.com

When we switch to the lightning experience it will look as shown below:

Lightning UI
Lightning UI

 Features of Salesforce lightning Experience:

  • It is a modern, fast, and intelligent user interface.
  • It is built with a sales or business need  mindset, focusing on helping sales representatives in order work more naturally on a daily basis.
  • With This Experience, Salesforce users will get an Easy to understand and intelligent user interface.
  • Above all Force.com Experience is built with proven  to Salesforce  Mobile App technology.

Why do we need to change from  classic to lightning:

This Experience is a like newly thing in the modern world and intelligent user experience across every device.This was introduced  in Summer ’16 release.For Instance But still  so many users using Salesforce Classic.

Salesforce asks its users and customers to migrate from classic to Salesforce Force.com or flash experience because the Force.com user interface is completely different from classic as we have seen above. Indeed,It has many features and some of your existing requirements may not work.

Lightning Component

It is a User Interface(UI) framework which is used to develop dynamic web applications for both mobiles and desktops.

It uses Language JavaScript (at the client-side) and Apex (at the server-side) to create single-page web applications.

This framework is a collection of codes or the programmes where you can create applications so as to gain without writing program (no need to write the code). This force.com Component consists of an event-driven architecture that has made it easy to build many applications

Also Refer This Intellipaat

Where is it use? What are its applications?

  1. This component Framework helps us to provides the components to build applications faster. As a result No need to start from the beginning.
  2. This component Framework tracks browser events when a user click a button, scrolling,moving  and many more.
  3. Our own components can be published and shared with other Salesforce users.
  4. To exchange data between the server and the client it uses JSON(Java Script Object Notation)
  5. Component Framework supports latest browser technologies  which therefore includes HTML5, CSS3 and touch events.

Creating Lightning Component:

  • To Create Salesforce Components, login to Salesforce developer account
  • Then,Click on  developer console.
  • Next,Go to file-> New-> Lightning Component
Creating Lightning Component
Creating Lightning Component
  • Enter name and description for the lightning component which you want to give
  • Here we  have  given the name of component as hello 
  • Lastly, This flash component has the as extension.cmp

Domain Management:

To use These components in Salesforce.com Salesforce Custom domain or Salesforce my Domain must be enabled.

Here we  will learn how to enable My domain in Salesforce and setting  up required Salesforce Custom domain Settings.

Salesforce Custom domain is a security measure  and it prevent malicious attacks from hackers or unauthenticated users. Custom domain URL will be of  likehttps://yourDomain.my.salesforce.com.

 Now we are going to create custom domain  called https://XXXXX-dev-ed.my.salesforce.com. Here XXXX(depends up on user website adress) is my website address. So i wish to create custom domain with my website name. how to create or Enable   custom Salesforce domain.

How to Enable Salesforce Custom domain

  • To enable  “Salesforce my domain”  After Clicking on Setup
  • Go to  to Administer ->Domain Management ->My Domain.
  • Click on My Domain
  • Enter your custom name in the URL and check whether the availability is there or not  .If it is available then
  • Now click on register domain button.
  • It takes about approx. 3 to 4 minutes to get registration.
  • Can Make a few changes in my domain settings and Finally click on Save button.
  • After that, When work is done, Similarly, like an email verification you will get an email notification as conformation that your developer edition domain is ready to test. Click on the link in the email and enter your  username and password.

If it successful and it will show you this message:

“Your Domain name is XXX   dev-ed.my.salesforce.com”

Salesforce Lightning Application:

Salesforce Lightning App however  is a special type of top level component whose markup is in a .app resource.

To build application, we will use many components like JavaScript, Lightning data service, CSS(Cascading Style Sheets) and HTML language.

Creating Salesforce Lightning App.

Here we are going to create Salesforce Force.com app from developer console and we will name  that application as “firstlightning“.

  • open Developer console
  • File -> New
  • lastly Click on  Lightning Application.
Creating Lightning Application
Creating Lightning Application
  • Click on Submit button.
  • As shown in the  above picture, we have created our first Salesforce lightning app
  • using two lightning components.
  • <c : is a standard name space. Where we can create our own namespace.
  • We have to use component file name in the application.
  • <c:hello/> displays the components hello and <c:hello1> displays hello1 component in Salesforce Force.com app.
  • Finally, Click on on Save button.

 TOKENS

A Token is can also a lightning bundle like any other bundle here bundles means can be components and events or the  interfaces.

To create a token bundle  follow the below  steps:

  • Go to developer console
  • Click on ->File-> New->
  • After that ,Click on Token bundle

Note – we need me make our  first token as “default Tokens”. Token with any other name will not be access in a this component.

If you don’t want to use token as “default Tokens”  then you need to import that token in default token first.

Default Tokens  requires in a tokens bundle. Contains markup for one or more tokens. Each tokens bundle contains only one tokens resource i.e default token

Name your token bundle then submit. It will look like below:

  • <aura:tokens>
  • </aura:tokens>

Generally token is a name-value pair that is defined using <aura: token> component name is used in the component to inherit token values.

Let us see the default token example:

<aura:tokens>
 <aura:token name=”brandedFont” value=”#9400d3″/>
</aura:tokens>

Component:

<aura:component implements=”force:appHostable”>
   
    <div class=”slds-box slds-theme_default”>
       
        <p>
           
            Testing
           
        </p>
       
    </div>
   
</aura:component>

CSS:

.THIS p {
   
    color: token(brandedFont);
   
}

Tokens Bundles

Tokens are like type of bundle, (we know that bundle is grouping together) just like components, events, and interfaces.

Generally,A tokens bundle will contain only one resource, a tokens collection definition

Expressions Tokens

Tokens support a limited  set of expressions. Moreover the expressions can reuse one token value in another token, or to combine tokens to form a more complex style property.

Cross-Referencing Tokens

To reference one token’s value in another token’s definition, bind or wrap the token to be referenced in standard expression syntax.

In the following example, we will see  reference tokens which are  provided by Salesforce in our custom tokens.

<aura:token name=”colorBackground” value=”rgb(244, 246, 249)” />

<aura:token name=”fontFamily” value=”‘Salesforce Sans’, Arial, sans-serif” />

</aura:tokens>

Extending Tokens Bundles : As it says to extend however it will Use the extends attribute to extend one tokens bundle from another.

Using Standard Design Tokens
Above all this Salesforce provides a set of “base” tokens that you can access in your component style resources. Use these standard tokens to mimic the look-and-feel of the Salesforce At last,Lightning Design System (SLDS) in your own custom components..

Also See other modules in salesforce

Conclusion

The record-level access controls in the  Lightning Platform are extremely flexible and powerful, and serve the working and security needs of all customers and users —from those working in small sales teams/ organisation to those working in very large enterprises or a Firm

FAQ(Frequently Asked Questions)

1.Do we need to switch to Salesforce lightning?

While Salesforce is not forcing users to switch to Lightning, It is important to note that the future of the Salesforce user experience and platform is Salesforce in Lightning. With all its new features and redesigned pages, there are many key benefits to using Lightning Experience.

2.What is the difference between Salesforce lightning and classic?

 Lightning enables users to design new types of pages, from App ,Home Pages to Record Pages, while Classic will  just offers one basic type of page.

3.What is the advantage of Salesforce lightning?

It is Easy to use interface. The new Lightning interface is now much smarter and more efficient than ever before. Drag-and-drop components and capabilities allow for easy customization and navigation. The Lightning interface also provides a baseless experience across all platforms, including desktop, tablet, and mobile

4.Why is Salesforce lightning so slow?

If an Octane score is less than 20,000 at minimum, Lightning Experience performance will likely to be slow. A high-end client device typically has an Octane score greater than 32,000.Upgrade the client device to a model with more processing power and memory.

RELATED ARTICLES

5 Best Laptops Under 60000 Suitable To Your Profession

Today we live in the era of the internet in which laptops and mobile phones play an important role. So if you...

5 Best Inverters to Buy This Year | How to Choose the Right Inverter

We all know inverters are useful for getting backup of electricity, but fewer people know about all features and types. If you...

Top Selling Best Budget Smartphones That You Can Buy This Year

Are you planning to buy a smartphone? Or Looking for a budget smartphones with the best features?  Almost everyone is stuck with...

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

5 Best Laptops Under 60000 Suitable To Your Profession

Today we live in the era of the internet in which laptops and mobile phones play an important role. So if you...

5 Best Inverters to Buy This Year | How to Choose the Right Inverter

We all know inverters are useful for getting backup of electricity, but fewer people know about all features and types. If you...

Top Selling Best Budget Smartphones That You Can Buy This Year

Are you planning to buy a smartphone? Or Looking for a budget smartphones with the best features?  Almost everyone is stuck with...

Top 10 Network Marketing Companies in India | Future of MLM Business

Everybody knows about marketing that it is an essential part of a business. It is essential to promote our product to others...

Recent Comments