notifySuccess()function
notifySuccess(message: ReactNode, el?: EventTarget): void
| Param | Type | |
|---|---|---|
message | ReactNode | The success message to show, as a React node. required |
el | EventTarget | Element to dispatch the event on (defaults to window). |
Notify the user with a success message by dispatching a notice event with "success" status.
Examples
notifySuccess("Profile updated");