Skip to content

Commit

Permalink
feat: add toast details in platformShowToastEvent stub (#331)
Browse files Browse the repository at this point in the history
* feat: allow to pass toast details in stub

* fix: formatting
  • Loading branch information
pozil committed Aug 8, 2023
1 parent e51afe8 commit 6e4190c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
const ShowToastEventName = 'lightning__showtoast';

export class ShowToastEvent extends CustomEvent {
constructor() {
constructor(toast) {
super(ShowToastEventName, {
composed: true,
cancelable: true,
bubbles: true,
detail: toast,
});
}
}

0 comments on commit 6e4190c

Please sign in to comment.