Blogs
-
LWC Events – Explained Clearly
What is an Event? Events represent occurrences, such as network activity or user interactions like button clicks, in the form of objects. In Lightning Web Components (LWC), events are based on DOM Events and can be categorized into two main types of interfaces: We highly recommend using the CustomEvent interface to create events in LWC.…
-
How To Retrieve Javascript Methods From A Child Component Within A Parent Component In LWC
In this article, we’ll explore accessing JavaScript methods defined in a child component from a parent component. For simplicity, we’ll only include JavaScript code here. First Step The initial fundamental step involves exposing a public method and decorating it with @api. Public methods form a component’s API, enabling communication down the hierarchy as parent components…
-
Employing .Map() For Iterating Through Array Items in JavaScript
We’re aware of the various techniques and methods employed to iterate through datasets in JavaScript, ranging from classic for loops to the forEach() method. One particularly popular method is the .map() method. This method serves various purposes when working with arrays. In this article, we’ll explore the utilization of .map() in JavaScript for invoking a…