Skip to content

CodeMirrorEditor.openNotification method

CodeMirrorEditor › openNotification

Unofficial

Open a notification message in the editor. Returns a function to dismiss it.

Signature:

openNotification(message: string, options?: OpenNotificationOptions | undefined): () => void

Parameters:

Parameter Type Description
message string The notification message to display.
options? OpenNotificationOptions | undefined The notification options.

Returns: () => voidA function to dismiss the notification.