ContextSwitcher API
API reference docs for the Stash ContextSwitcher
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import ContextSwitcher from '@leaflink/stash/ContextSwitcher.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
activeApp | AppValues | - | The current app that is active. Choices are 'marketplace' | 'payments'. |
limitedAccessUrl | string | '-' | Url to replace the other app if current user does not have portal access. |
portalAccess | { commercePortal: boolean; paymentsPortal: boolean; } | () => ({
commercePortal: false,
paymentsPortal: false,
}) | Portal access to both marketplace and payments. |
routeQuery | LocationQuery | () => ({}) |
Slots
None
Events
Name | Description |
---|---|
click | Fires on click of the context switcher. |
switch | Fires on click of the context switcher. |