standalone
standalone class has methods to work with Standalone App Dashboard to build sharable urls to modify standalone url params
How to use
import { Plugin } from '@root'
const { standalone } = Plugin
const MyCustomComponent = props => {
return (
<div>
<p>Current Standalone AppID: ${standalone.id}`</p>
</div>
)
}
export default MyCustomComponentAvailable methods
id
string
Current standalone id
string
params
object
Current standalone url params
object
isApp
function
Check if Dashboard is running in standalone app
boolean
isStandalone
function
Check if Dashboard is running in any standalone
boolean
buildPath
function
Helper function to build a sharable url with custom params
string
getShareablePath
function
Current standalone url with the current params
string
addParams
function
Add custom params to current standalone url
void
removeParams
function
Remove params from current url standalone
void
hasPermission
function
Check if the loggedIn user has permission to run StandaloneApp
boolean
id
The current standalone id
params
The current standalone url params
isApp
Check if Dashboard is running in Standalone App mode
isStandalone
Check if Dashboard is running in any Standalone mode
buildPath
Build standalone url for plugin with custom params
getShareablePath
Get a sharable url for the current standalone app
addParams
Add custom params to the current standalone url
removeParams
Remove params from the current standalone url
hasPermission
Check if loggedIn user has permission to run StandaloneApp
Last updated
Was this helpful?