Last Updated on April 15, 2022 by Rakesh Gupta
The Lightning Component modern framework is a User Interface framework to develop dynamic web apps for mobile and desktop devices. As is the case with each release, the latest Spring‘19 release is packed with rich features including, the newly added Lightning Component features!
Currently, Spring’19 release is available under the pre-release program. Sandboxes will be upgraded on 4th and 5th of January. As a result, your organization will get the look and feel of Spring’19 release.
In case you have not read the entire 429 pages of Salesforce Spring’19 release notes, check out Spring’19 release quick summary and the Spring into Top 10 Lightning Experience Gems of Salesforce Spring’19 Release! written by me.
I combed through the release notes and highlighted the added capabilities to the Lightning Component features. Believe me, it was hard to stop at just five! To kick things off, here is my take on the coolest Lightning Component features from Spring’19 release.
Lightning Locker supports the new Lightning Web Components programming model.
2) Get Notified About Unsaved Changes:- Notify the UI about unsaved changes in your component with the lightning:unsaved Changes Aura component. You can use lightning:unsavedChanges in standard and console navigation apps. You can then use a controller to save or discard the changes.
4) Add Region Labels to Your Aura Page Template Components:- As part of the new template switching feature in the Lightning App Builder, you can now add labels to each region in your Aura page template components. These labels appear in the template switching wizard in the Lightning App Builder when users map region content to a new template.
In the design file for your component, add the label attribute to the flexipage:region tag like this:
<design:component label="Two Region Custom App Page Template"> <flexipage:template > <!-- The default width for the "left" region is "MEDIUM". In tablets, the width is "SMALL" --> <flexipage:region name="left" label="Left Region" defaultWidth="MEDIUM"> <flexipage:formfactor type="MEDIUM" width="SMALL"/> </flexipage:region> <flexipage:region name="right" label="Right Region" defaultWidth="SMALL"/> </flexipage:template> </design:component>
Region labels are supported only in Aura components that implement one of these interfaces:
5) Navigate to a URL with the standard__webPage Page Reference Type:- The navigation service uses a PageReference object to describe pages. A new PageReference type of standard__webPage wraps a raw URL so that you can navigate to external websites.
What are your favorite Spring’19 release note gems? Care to share?