Skip to content

MarkdownView.onSwitchView method

MarkdownView › onSwitchView

Unofficial

On mod click, opens editor of opposite mode in split view to right.

Signature:

onSwitchView(event: KeyboardEvent | MouseEvent): Promise<void>

Parameters:

Parameter Type Description
event KeyboardEvent | MouseEvent The keyboard or mouse event.

Returns: Promise<void>A promise that resolves when the view is switched.