I have always seen Salesforce Aura Component developers using multiple checks before fetching data from
component.find method. It is because, it does return three types of results:
Continue reading “Salesforce Lightning : A better way to handle component.find return value”
undefined – when there are no items found on the DOM
- Single component – when there are only one item found in the DOM
- Array of components – when there are more than an item found in the DOM
Salesforce Lightning Components are a great way to build modern intuitive development. However, when there is a need for the component or the application to behave differently in different devices, we can make use of $Browser global value provider.
Continue reading “Salesforce Lightning : Device Based Behavior”
To build endpoints, we often need a better method that is simplified and clean. With Salesforce
Continue reading “Salesforce Apex : URL Parameter Manager”
PageReference class, it is easier for us to parse and build URL query string.
In Salesforce Lightning Community pages, we may have a logic that needs to be implemented in the Lightning Component when URL changes. This can be captured easily using
Continue reading “Salesforce : Detect change in Page URL”
To get the attributes of elements that has been targeted (which element has been clicked), we can use two ways:
Continue reading “Salesforce Lightning : Get attribute of the elements – Event Handling”
Modal popup can be added using SLDS as shown here.
It can be shown or hidden in two ways:
- Using CSS Class
- Using attribute variable
Continue reading “Salesforce Lightning : Show or Hide a Modal”