dashboard-js-devexpress-dot-dashboard-e39445ee.md
Provides options for customizing the DashboardExportExtension.
export interface DashboardExportExtensionOptions
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
| |
|
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
Specifies whether the entire dashboard can be exported by end-users.
allowExportDashboard?: boolean
| Type | Description |
|---|---|
| boolean |
true , if end-users can export the entire dashboard; otherwise, false.
|
Specifies whether the dashboard items can be exported by end-users.
allowExportDashboardItems?: boolean
| Type | Description |
|---|---|
| boolean |
true , if end-users can export the dashboard items; otherwise, false.
|
Provides access to options related to exporting a dashboard/dashboard item to Excel format.
excelExportOptions?: DevExpress.Dashboard.DashboardExcelExportOptions
| Type | Description |
|---|---|
| DashboardExcelExportOptions |
A DashboardExcelExportOptions object that contains Excel export options.
|
The following example shows how to customize dashboard Excel export options when you initialize a dashboard control instance:
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"
}
}
}
});
Provides access to options related to exporting a dashboard/dashboard item as an image.
imageExportOptions?: DevExpress.Dashboard.DashboardImageExportOptions
| Type | Description |
|---|---|
| DashboardImageExportOptions |
A DashboardExcelExportOptions object that contains Image export options.
|
The following example shows how to customize dashboard PDF export options when you initialize a dashboard control instance:
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
}
}
}
}
});
A handler for the event that occurs when the export dialog is hidden.
onExportDialogHidden?: (args: DashboardExportDialogArgs) => void
| Type | Description |
|---|---|
| (args: DashboardExportDialogArgs) => void |
A function that is executed when the export dialog is hidden.
|
A handler for the event that occurs before the export dialog is shown.
onExportDialogShowing?: (args: DashboardExportDialogArgs) => void
| Type | Description |
|---|---|
| (args: DashboardExportDialogArgs) => void |
A function that is executed before the export dialog is shown.
|
A handler for the event that occurs after the export dialog is shown.
onExportDialogShown?: (args: DashboardExportDialogArgs) => void
| Type | Description |
|---|---|
| (args: DashboardExportDialogArgs) => void |
A function that is executed after the export dialog is shown.
|
Provides access to options related to exporting a dashboard/dashboard item to PDF format.
pdfExportOptions?: DevExpress.Dashboard.DashboardPdfExportOptions
| Type | Description |
|---|---|
| DashboardPdfExportOptions |
A DashboardPdfExportOptions object that contains PDF export options.
|
The following example shows how to customize dashboard PDF export options when you initialize a dashboard control instance:
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