ConversionPanelExtension Class

An extension that is the dashboard item's Convert To menu allowing you to convert or duplicate the current item.

Declaration

export class ConversionPanelExtension implements IExtension

Impemented Interfaces

When registered, the ConversionPanelExtension adds the Options panel to the dashboard item's menu.

To disable the current panel, call the unregisterExtension method and pass the extension's unique name as a parameter:

dashboardControl.unregisterExtension('item-conversion-panel');

Constructor

Initializes a new instance of the ConversionPanelExtension class.

Declaration

constructor(dashboardControl: DashboardControl)

Parameters

Type Name Description
DashboardControl dashboardControl

A Web Dashboard control that owns the extension.

Properties

name property

Specifies a unique extension name.

Declaration

name: string

Property Value

Type Description
string

A unique extension name. The return value is 'item-conversion-panel'.

Implementation of

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

Implementation of

stop method

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

Declaration

stop(): void

Implementation of