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

13 lines
339 B
JavaScript

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