getCurrentViewport( )


Gets the viewport currently selected in the Editor.

The getCurrentViewport() function returns a Promise that resolves to an object containing details about the currently selected viewport. To use this function on an inner (nested) widget, use getScopedWixEditor().

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Viewport>
Did this help?