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:
Parameters:
Name | Type | Description |
---|---|---|
options | Object | Specify the component to open the settings panel for. |
options.compId | String | The component to open the settings panel for. |
onFailure | Function | Callback is invoked when the he user cancels opening the settings panel or the specified component information is incorrect. |
Example: