DataSourceWizardExtension Class

A Web Dashboard extension that is the Data Source Wizard.

Declaration

export class DataSourceWizardExtension implements IExtension

Remarks

Refer to the DataSourceWizardExtensionOptions class that contains the extension's options to configure the extension.

The Web Dashboard supports two Data Source Wizard types:

The Web Dashboard uses the DataSourceWizardExtension by default. The code snippet below shows how to enable the other wizard:

dashboardControl.unregisterExtension('data-source-wizard');
dashboardControl.registerExtension(new DevExpress.Dashboard.MultiQueryDataSourceWizardExtension(dashboardControl));

See the Extensions Overview section for information on how to use the HTML JavaScript Dashboard's client-side API.

Implements

Inheritance

DataSourceWizardExtension

constructor(dashboardControl)

Initializes a new instance of the DataSourceWizardExtension class.

Declaration

constructor(dashboardControl: DashboardControl, options?: DataSourceWizardExtensionOptions)

Parameters

Name Type Description
dashboardControl DashboardControl

A Web Dashboard control that owns the extension.

options DataSourceWizardExtensionOptions

A DataSourceWizardExtension object that contains the extension options.

Properties

isCustomSqlEnabled Property

Specifies whether custom SQL strings editing is enabled.

Declaration

isCustomSqlEnabled: boolean

Property Value

Type Description
boolean

true, if custom SQL strings editing is enabled; otherwise, false.

name Property

Specifies The unique extension name.

Declaration

name: string

Property Value

Type Description
string

The unique extension name. The return value is 'data-source-wizard'.

Remarks

WARNING

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

off Property

Unsubscribes from the DataSourceWizardExtension's events.

Declaration

off: EventSubscriber<DataSourceWizardExtensionEvents>

Property Value

Type Description
EventSubscriber<DataSourceWizardExtensionEvents>

An event subscription.

on Property

Subscribes to the DataSourceWizardExtension's events.

Declaration

on: EventSubscriber<DataSourceWizardExtensionEvents>

Property Value

Type Description
EventSubscriber<DataSourceWizardExtensionEvents>

An event subscription.

Remarks

The extension's on and off methods help you subscribe to and unsubscribe from events.

Methods

showDataSourceCreatingDialog Method

Invokes the Data Source Creating dialog.

Declaration

showDataSourceCreatingDialog(): JQueryPromise<DataSource>

Returns

Type Description
JQueryPromise<DataSource>

A JQuery Promise object that identifies whether the action succeeded.

showSqlQueryEditingDialog(dashboardSqlDataSource) Method

Declaration

showSqlQueryEditingDialog(dashboardSqlDataSource: SqlDataSource, queryName?: string): void

Parameters

Name Type
dashboardSqlDataSource SqlDataSource
queryName string

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