Application data.
Experimental
componentThe component's base URL. This can be used to compose an absolute URL to a static component asset.
For example:
new URL('./static/image.png', context.componentBaseUrl).href;
True if destroy
is called and has destroyed all clients.
Values for the inputs declared in the components manifest file as a Javascript Map.
Values for the inputs declared in the components manifest file
'edit' when the component is used in the Studio, else 'view'.
Called when the time range is changed
Called when the VPN client status changes
Snapshot of the current time range
If the time range is adjustable.
Snapshot of the current VPN client status.
Creates a client to call backend components.
Every time this method is called, a new client is created.
Creates a client to retrieve logging data.
Every time this method is called, a new client is created.
Creates a client to communicate with object storage.
Every time this method is called, a new client is created.
Creates a client to retrieve resource data.
Every time this method is called, a new client is created.
Attaches a tooltip on the target element.
the target element
configures the tooltip message and other (optional) properties
returns the tooltip instance
Get the endpoint for a resource, the rel.
The name of the resource, see the reference for all resource relations.
Optional
params: { Extra query parameters, see the reference for all the URL and query paramaters that can be used for a specific resource.
Opens an alert dialog.
configures the alert dialog
Opens a confirmation dialog.
configures the confirm dialog
Opens a form dialog.
configures the form dialog
Helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing the passed HTML, removing any potentially unsafe content.
the HTML to sanitize
Optional
options: { allowStyleAttr: if set to true, the style attribute will be allowed in the HTML. Defaults to false
Optional
allowSet a new time range. Check timeRangeIsAdjustable
to verify the time range is adjustable
The time range to change to
Translate a key to the user's language.
Optional
interpolateParams: ObjectOptional
options: TranslateOptionsOptional
interpolateParams: ObjectOptional
options: TranslateOptionsOptional
interpolateParams: ObjectOptional
options: TranslateOptions
The Component Context provides access to the component's inputs, the page's time range, to the LoggingDataClient and ResourceDataClient and to other application data.