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 ‘18 release is packed with rich features including, the newly added Lightning Component features!
Currently, Spring’18 release is available under the pre-release program. On the 5th and 6th of January, Sandboxes will be upgraded; as a result, your organization will get the look and feel of Spring’18 release.
If you have not read the entire 437 pages of Salesforce Spring’18 release notes yet, check out Spring’18 release quick summary and, the Top 10 Lightning Experience Gems of Salesforce Spring’18 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’18 release.
1) Build Exciting User Interfaces with New Base Lightning Components:- Now you can accelerate your development with a fresh medley of new built-in Lightning components. The new components cover a broad range of user interface elements and give you a whole new tool bag for your development. Following are few of the new component features. Please note that these features require API version 42.0 or later.
a) lightning:inputName: – It will display a name compound field with support for salutation, first name, middle name, last name, informal name, and suffix.
b) lightning:treeGrid: – It will display a hierarchical view of data presented in a table.
d) lightning:carousel: – Display a collection of images that are displayed horizontally one at a time.
2) Action Overrides That Use Lightning Components Are Supported in Lightning Console Apps:- Get ready for deeper control over what users see when viewing or editing a record or opening a list. Action overrides that use Lightning components for View, New, Edit, and Tab are now supported in Lightning console apps. When a user performs an action that’s overridden with a Lightning component, the content from the custom action appears in a tab or subtab. When the split view is open, tab action overrides load the Lightning component in a split-view container that is 400-pixels wide.
3) Use without sharing for @AuraEnabled Apex Controllers with Implicit Sharing (Critical Update):- This critical update changes the behavior of @AuraEnabled Apex controllers that don’t specify with sharing or without sharing to default to without sharing. This change relaxes the security for controllers that don’t explicitly set sharing behavior using these keywords. It’s a best practice to always use with sharing in Apex controllers used with Lightning components.
4) Find Dynamically Created Components:- You can now use cmp.find() to find a component that you create dynamically with $A.createComponent().
In prior releases, a bug prevented cmp.find(), the standard method for finding a component, from working with dynamically created components.
5) View Lightning Component Resources in Custom Namespaces and Packages:- You can now find documentation for components, events, and interfaces, in your custom namespaces and packages in the Component Library (Beta).
Resources – components, events, and interfaces – in custom namespaces display both global and non-global attributes and methods. Resources in managed and unmanaged packages display global attributes and methods only. By default, only the Specification tab is available for these resources. The Specification tab lists out the attributes and methods that are defined in the resource, such as the .cmp resource on a component.
To provide your own documentation in the Documentation tab for components in custom namespaces and packages, include an auradoc resource in your bundle.
What are your favorite Spring’18 release note gems?