getViewMode()

Gets the current view mode in the editor, which can be either 'DESKTOP' または ‘MOBILE’. This enables you to show different options in your settings panel depending on whether the user is viewing the desktop or mobile versions of their site.

Syntax

コピー
1

Parameters

This method does not take any parameters.

リターン

Promise<string>

The current view mode in the editor, which can be either 'DESKTOP' または ‘MOBILE’.

コピー
1
役に立ちましたか?
はい
いいえ