notifyError()function
notifyError(message: ReactNode, el?: EventTarget): void
| Param | Type | |
|---|---|---|
message | ReactNode | The error message to show, as a React node. required |
el | EventTarget | Element to dispatch the event on (defaults to window). |
Notify the user with an error message by dispatching a notice event with "error" status.
Examples
notifyError("Could not save your changes");