SIGN IN SIGN UP

Login to your account

Username or Email *
Password *
Remember Me
LWC Progress | ( Lessons)

Lesson: 25 | Delete a Record | ToastEvent


 

A toast event is a type of event in Salesforce Lightning Web Components (LWC) that displays a brief message to the user on the page. Toast events are often used to provide feedback to the user after an action has been performed, such as after a record has been saved, updated, or deleted.

To use a toast event in an LWC, you first need to import the ShowToastEvent class from the lightning/platformShowToastEvent module. You can then create an instance of the ShowToastEvent class with various properties that determine the content and appearance of the toast message.


Prev You need to login to have access to the quizzes. Next

Mastered by 12 users.

Lightning Web Components

A. Component Reference (27 lessons)
B. Lightning Web Components | Utilities (11 lessons)
C. Lightning Web Component Guide (41 lessons)
D. Java Script Methods for LWC (23 lessons)
E. HTML (18 lessons)
Go to top