QuestionQ55

VerifiedBasic Lightning Web Component Development

A Northern Train Outfitters (NTO) developer created a tile component. To expose a click event and respond to user input with the markup below, what should replace <CLICK_EVENT>?

Question Image

Explanation

Lightning Web Components declaratively bind a DOM event handler by using the event attribute and a component method reference in braces. An anchor click handler therefore uses onclick={tileClick}, which calls the tileClick method when the user clicks the tile. Salesforce: Handle Events

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!