Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-toast/lib/state/vanilla/playToast.js

13 lines
337 B
JavaScript

import { EVENTS } from '../constants';
export function playToast(toastId, toasterId = undefined, targetDocument) {
const event = new CustomEvent(EVENTS.play, {
bubbles: false,
cancelable: false,
detail: {
toastId,
toasterId
}
});
targetDocument.dispatchEvent(event);
}