Lightning Component For Spinner


15 Feb 2017

This is extension of my recent post Lightning Utilities — Salesforce. This post talks about a lightning custom component for spinner that can be used at the time of loading anything. It has been made using Lightning design system. It has following features:

  1. Plug n play
  2. Use SLDS to display spinner as per Salesforce’s branding
  3. Extra feature to display a text to display what type of action is going on.
  4. Can be used in different sizes.

Screenshots

Parameters available

Attribute Required? Description type Yes Size of loader. Can be large, medium, small show Yes Show or hide the spinner spinnerText Optional Additional text to be displayed along with spinner. Can be used to display loading for particular context.

Usage

<c:Spinner show="true" type="large" spinnerText="Something happening.."/>

Related Articles

Lightning Utilities — Salesforce

Lightning Component For Lookup — LookupSobject

Lightning Component For Notification

Labels: Lightning, Salesforce, Utilities, Component


Originally published at blog.lkatney.com on February 15, 2017.

Like what you read? Give Lakshay Katney a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.