ExamGecko
Question list
Search
Search

List of questions

Search

Question 219 - Certified B2B Commerce Administrator discussion

Report
Export

Which two event settings are required for a custom event called CustomEvent to fire from the Lightning web component and propagate up to the DOM?

A.
bubbles: true
Answers
A.
bubbles: true
B.
composed: true
Answers
B.
composed: true
C.
cancelable: true
Answers
C.
cancelable: true
D.
composed: false
Answers
D.
composed: false
Suggested answer: A, B

Explanation:

To fire a custom event from a Lightning web component and propagate it up to the DOM, the event must have the bubbles and composed properties set to true. The bubbles property indicates whether the event should bubble up through the component hierarchy or not. The composed property indicates whether the event should cross the shadow boundary and reach the DOM.If either of these properties is false, the event will not be visible to the DOM elements3.Reference:3: Communicate with Events - Trailhead4

asked 23/09/2024
Steve Jenkins-Thorkildson
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first