Dashboard pages are the backoffice of your app, allowing site builders to manage the app's data and settings. You can see examples of Dashboard Pages in the Wix apps.
Read our UX guidelins to build usefull and successful Dashboard pages.
Add a Dashboard Page to your Blocks app through the App Dashboard icon in the left menu.
Your Dashboard page includes:
Important Currently, you can only create one Dashboard page for your Blocks app.
Multi-state boxes can be especially useful in Dashboard pages. They can help you create:
Several inner pages
A wizard
Empty states or loadings states
For example, the Dashboard of a "Members" app can have a multi-state box, so that site builders see a list of the members as default, and another type if they click "Add Member".
This is the first state of the multi-state-box in the Dashboard page:
This is the second state:
One of the most common ways to open a Dashboard page is from the Main Action Button in one of your widget's Action Buttons. To do this:
Use your Dashboard page's code section to add code to your Dashboard page. Your code can include:
To add code to your Dashboard Page:
You might want to open the Dashboard from a custom panels code that you built. Do this in two steps:
First, get your Dashboard's URL.
Now, use this URL in the panel code.
Go to the Editor Experience Panels tab.
Select your panel from the Custom Panels list.
Go to the panel's code section (if you don't see the code section, Click the Maximize icon).
Import the wix-editor module:
Use the openDashboardPanel() function, with the Dashboard URL as a parameter, to open your Dashboard page from the panel. For example: