In the JavaScript class for a component, create and dispatch events. Use the CustomEvent() function Object() { [native code] } to create an event. Call the EventTarget.dispatchEvent() function to dispatch…
Category: Salesforce
Pass Data in an Event
Set a detail property in the CustomEvent function Object() { [native code] } to send data to a receiving component. The event listener’s handler function provides access to the data…
Lifecycle Hooks pt. 2
Flowing from parent to child are both hooks. Because they are not yet created, child components cannot be accessed from callbacks. Use this to gain access to the host element.…
Price Book Entry Bulk Load pt. 2
In a previous blog, we talked about the format that would be required if you were to create a CSV for loading Price Book Entries via a tool such as…
Lifecycle Hooks pt. 1
When a component instance is created, the constructor() method is called. Avoid adding properties to the host element while it is being built. In any other lifecycle hook, you can…
Price Book Entry Bulk Load pt. 1
In a previous blog, we talked about how to create Price Book Entries in your Salesforce instance. During that walk through, the entries were created manually. Oftentimes you may want…