This article describes how to add a dashboard menu plugin into a pre-configured slot in an app built by Wix, using the App Dashboard.
Note:
Add the extension by doing the following:
| Property | Description |
|---|---|
| extends | Required. The slot ID for the slot your extension plugs into. |
| hostingPlatform | Required. The Wix platform that hosts the extension. Use BUSINESS_MANAGER. |
| iconKey | The icon that appears next to your extension in the menu it's added to. Select a normal-size icon from the Wix Design System and paste its name. |
| action | Required. What your extension does when clicked. Enter openModal to direct site administrators to a dashboard modal, or navigateToPage to direct them to another dashboard page. |
| action.navigateToPage | When action is set to navigateToPage, the page navigation configuration object. This contains the ID of the target dashboard page, as well as additional parameters. Learn how to find the extension ID. |
| action.navigateToPage.pageId | Required when using navigateToPage. The ID of the dashboard page to which site administrators are directed. Learn how to find the extension ID. |
| action.navigateToPage.relativeUrl | A URI segment attached to the base URI of the target dashboard page. It can include path segments, search parameters and hash information. |
| action.openModal | When action is set to openModal, the dashboard modal configuration object. This contains the ID of the dashboard modal to display, as well as additional parameters. Learn more about dashboard modals. |
| action.openModal.componentId | Required when using openModal. The ID of the dashboard modal to display when the extension is clicked. Learn how to find the extension ID. |
| action.openModal.componentParams | Additional parameters you can pass to your dashboard modal. Note that if an additional parameter shares a name with a parameter passed by the slot, the additional parameter overrides the slot's parameter. |
| componentName | A unique name for this extension that appears in the app dashboard. |
When the site admins clicks the dashboard menu plugin extension, they are directed to the specified dashboard page or shown the modal.