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:

ParameterTypeDescription
messagestringThe notification message to display.
options?OpenNotificationOptions | undefinedThe notification options.

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