Wix.Preview

openSettingsDialog

Ends Preview mode and sends Wix users directly from their site’s preview to the App Settings panel in the Editor.

SDK Version: SDK 1.45.0+
Display: Preview
Components: Widget, Pinned (aka Fixed-Position) Widget, Page

When called with no options, uses the Widget or Page that called the method.

Syntax:

Copy
1
openSettingsDialog(\[options\], \[onFailure\])

Parameters:

NameTypeDescription
options ObjectSpecify the component to open the settings panel for. 
options.compIdStringThe component to open the settings panel for. 
onFailureFunctionCallback is invoked when the he user cancels opening the settings panel or the specified component information is incorrect.

Example:

Copy
1
Wix.Preview.openSettingsDialog();
Was this helpful?
Yes
No