Back to Devexpress

DashboardExportExtensionOptions Interface

dashboard-js-devexpress-dot-dashboard-e39445ee.md

latest10.6 KB
Original Source

DashboardExportExtensionOptions Interface

Provides options for customizing the DashboardExportExtension.

Declaration

ts
export interface DashboardExportExtensionOptions

Remarks

See the following topic for information on how to use the DashboardControl’s client-side API: Extensions Overview.

The table below displays client-side API you can use to configure export options:

|

Export Type

|

DashboardExportExtension

|

DashboardExportExtensionOptions

| | --- | --- | --- | |

Common

|

DashboardExportExtension.allowExportDashboard

DashboardExportExtension.allowExportDashboardItems

DashboardExportExtension.showExportDashboardDialog

DashboardExportExtension.showExportDashboardItemDialog

|

DashboardExportExtensionOptions.allowExportDashboard

DashboardExportExtensionOptions.allowExportDashboardItems

DashboardExportExtensionOptions.onExportDialogHidden

DashboardExportExtensionOptions.onExportDialogShowing

DashboardExportExtensionOptions.onExportDialogShown

| |

Excel

|

DashboardExportExtension.getExcelExportOptions

DashboardExportExtension.setExcelExportOptions

DashboardExportExtension.exportToExcel

DashboardExportExtension.exportDashboardItemToExcel

|

DashboardExportExtensionOptions.excelExportOptions

| |

Pdf

|

DashboardExportExtension.getPdfExportOptions

DashboardExportExtension.setPdfExportOptions

DashboardExportExtension.exportToPdf

DashboardExportExtension.exportDashboardItemToPdf

|

DashboardExportExtensionOptions.pdfExportOptions

| |

Image

|

DashboardExportExtension.getImageExportOptions

DashboardExportExtension.setImageExportOptions

DashboardExportExtension.exportToImage

DashboardExportExtension.exportDashboardItemToImage

|

DashboardExportExtensionOptions.imageExportOptions

|

See Also

Extensions in the Web Dashboard

Properties

allowExportDashboard Property

Specifies whether the entire dashboard can be exported by end-users.

Declaration

ts
allowExportDashboard?: boolean

Property Value

TypeDescription
boolean

true , if end-users can export the entire dashboard; otherwise, false.

|

allowExportDashboardItems Property

Specifies whether the dashboard items can be exported by end-users.

Declaration

ts
allowExportDashboardItems?: boolean

Property Value

TypeDescription
boolean

true , if end-users can export the dashboard items; otherwise, false.

|

excelExportOptions Property

Provides access to options related to exporting a dashboard/dashboard item to Excel format.

Declaration

ts
excelExportOptions?: DevExpress.Dashboard.DashboardExcelExportOptions

Property Value

TypeDescription
DashboardExcelExportOptions

A DashboardExcelExportOptions object that contains Excel export options.

|

Remarks

The following example shows how to customize dashboard Excel export options when you initialize a dashboard control instance:

javascript
var dashboardControl = new DashboardControl(this.element.nativeElement.querySelector(".dashboard-container"), {  
  endpoint: "https://demos.devexpress.com/services/dashboard/api",  
  workingMode: "Designer",
  extensions: {
    "dashboardExport": {
      excelExportOptions: {
        Format: "Xlsx",
        DashboardStatePosition = "SeparateSheet"
      }
    }
  }
});

imageExportOptions Property

Provides access to options related to exporting a dashboard/dashboard item as an image.

Declaration

ts
imageExportOptions?: DevExpress.Dashboard.DashboardImageExportOptions

Property Value

TypeDescription
DashboardImageExportOptions

A DashboardExcelExportOptions object that contains Image export options.

|

Remarks

The following example shows how to customize dashboard PDF export options when you initialize a dashboard control instance:

javascript
var dashboardControl = new DashboardControl(this.element.nativeElement.querySelector(".dashboard-container"), {  
  endpoint: "https://demos.devexpress.com/services/dashboard/api",  
  workingMode: "Designer",
  extensions: {
    "dashboardExport": {
      imageExportOptions: {
        FontInfo: {
          UseCustomFontInfo: true,
          Name: "Tahoma",
          GdiCharSet: 1
        }
      }
    }
  }
});

onExportDialogHidden Property

A handler for the event that occurs when the export dialog is hidden.

Declaration

ts
onExportDialogHidden?: (args: DashboardExportDialogArgs) => void

Property Value

TypeDescription
(args: DashboardExportDialogArgs) => void

A function that is executed when the export dialog is hidden.

|

onExportDialogShowing Property

A handler for the event that occurs before the export dialog is shown.

Declaration

ts
onExportDialogShowing?: (args: DashboardExportDialogArgs) => void

Property Value

TypeDescription
(args: DashboardExportDialogArgs) => void

A function that is executed before the export dialog is shown.

|

onExportDialogShown Property

A handler for the event that occurs after the export dialog is shown.

Declaration

ts
onExportDialogShown?: (args: DashboardExportDialogArgs) => void

Property Value

TypeDescription
(args: DashboardExportDialogArgs) => void

A function that is executed after the export dialog is shown.

|

pdfExportOptions Property

Provides access to options related to exporting a dashboard/dashboard item to PDF format.

Declaration

ts
pdfExportOptions?: DevExpress.Dashboard.DashboardPdfExportOptions

Property Value

TypeDescription
DashboardPdfExportOptions

A DashboardPdfExportOptions object that contains PDF export options.

|

Remarks

The following example shows how to customize dashboard PDF export options when you initialize a dashboard control instance:

javascript
var dashboardControl = new DashboardControl(this.element.nativeElement.querySelector(".dashboard-container"), {  
  endpoint: "https://demos.devexpress.com/services/dashboard/api",  
  workingMode: "Designer",
  extensions: {
    "dashboardExport": {
      pdfExportOptions: {
        FontInfo: {
          UseCustomFontInfo: true,
          Name: "Tahoma",
          GdiCharSet: 1
        }
      }
    }
  }
});

See Also

DashboardControl's Client-Side API Overview