LightningAlert, LightningConfirm, and LightningPromt in Lightning web components.
LightningAlert, LightningConfirm, and LightningPrompt are used to create notifications from your Lightning web components. Chrome and Safari plan to end support for cross-origin use of the window.alert(), window.confirm() and window.prompt() native APIs. Each new module creates a modal that functions like its API counterpart and works in cross-origin iframes. LightningAlert, LightningConfirm, and LightningPrompt return a promise. Use async/await or .then() for any code that you…
Read More “LightningAlert, LightningConfirm, and LightningPromt in Lightning web components.” »