UrlStateExtension Class

A Web Dashboard extension that displays a dashboard state in the url.

Declaration

export class UrlStateExtension extends DisposableObject implements IExtension

Remarks

To configure the extension, refer to the UrlStateExtensionOptions class that contains options of the Url State extenion.

Inheritance

DisposableObject
UrlStateExtension

Implements

Inherited Members

constructor(dashboardControl)

Initializes a new instance of the UrlStateExtension class.

Declaration

constructor(dashboardControl: DashboardControl, options?: UrlStateExtensionOptions)

Parameters

Type Name Description
DashboardControl dashboardControl

A Web Dashboard control that owns the extension.

UrlStateExtensionOptions options

A UrlStateExtensionOptions object that contains the extension's options.

Properties

name Property

Specifies a unique extension name.

Declaration

name: string

Property Value

Type Description
string

A unique extension name. The return value is 'url-state'.

Remarks

Warning

Do not change a unique name of the extension registered in the Web Dashboard in order to avoid exceptions.

Methods

start Method

Contains code that is executed when you register the dashboard extension.

Declaration

start(): void

stop Method

Contains code that is executed when you unregister the dashboard extension.

Declaration

stop(): void