IDashboardExportImageOptions
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Options for exporting dashboard to png format
export interface IDashboardExportImageOptions extends IDashboardExportTimezoneOptions
Extends: IDashboardExportTimezoneOptions
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
string | (ALPHA) (Optional) Filename for the export. If not provided, the dashboard title will be fetched. | ||
Record<string, IDashboardExportParameter[]> | (ALPHA) (Optional) Per-tab parameter runtime-overrides applied when rendering the exported image. Keyed by tab | ||
number | (ALPHA) (Optional) Override the default export result polling timeout (in milliseconds). | ||
ObjRef[] | (ALPHA) (Optional) Widgets to export. If not provided, all widgets will be exported. |
Property details
IDashboardExportImageOptions.filenamepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Filename for the export. If not provided, the dashboard title will be fetched.
filename?: string;
IDashboardExportImageOptions.parametersByTabpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Per-tab parameter runtime-overrides applied when rendering the exported image. Keyed by tab localIdentifier; a widget-scoped export carries the single owning tab. Mirrors dashboardTabsParametersOverrides on the tabular options.
parametersByTab?: Record<string, IDashboardExportParameter[]>;
IDashboardExportImageOptions.timeoutpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Override the default export result polling timeout (in milliseconds).
timeout?: number;
Remarks
If not specified, there is still a default timeout applied. You can use this to make the timeout more aggressive or more relaxed than the default. We recommend not setting this lower than 5 seconds as it would mean only one attempt would be made.
IDashboardExportImageOptions.widgetIdspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Widgets to export. If not provided, all widgets will be exported.
widgetIds?: ObjRef[];