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.
function openDashboardPanel(options: DashboardOptions): Promise<void>;
Relative URL for the Dashboard page.
import wixEditor from "wix-editor";
// ...
wixEditor.openDashboardPanel({ url: "blog" }).then(() => {
// Code to execute after opening the dashboard panel
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.