openDashboardPanel( )


Opens the Dashboard for the current site.

The openDashboardPanel() function returns a Promise that resolves when the Dashboard is open. The url parameter specifies the page to open within the Dashboard.

Method Declaration
Copy
function openDashboardPanel(options: DashboardOptions): Promise<void>;
Method Parameters
optionsDashboardOptionsRequired

Relative URL for the Dashboard page.

Open a dashboard panel
JavaScript
import wixEditor from "wix-editor"; // ... wixEditor.openDashboardPanel({ url: "blog" }).then(() => { // Code to execute after opening the dashboard panel });
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?