[]
This document elaborates the API to create a complete dashboard interface using the designer and viewer components. You can create, edit, and save dashboards in dashboard designer and view dashboards in the dashboard viewer.
The following sections describe the module: dashboard/types.
The event name dashboard is supported.
• Drill = "Drill"
• DrillDown = "DrillDown"
• DrillReset = "ResetDrill"
• DrillUp = "DrillUp"
• HideScenario = "HideScenario"
• ShowScenario = "ShowScenario"
• SwitchPage = "SwitchPage"
• SwitchTab = "SwitchTab"
• ToggleScenario = "ToggleScenario"
• Close = "close"
Dashboard designer close event.
• DatabindingPanelHidden = "databindingPanelHidden"
Data binding panel hidden event.
• DatabindingPanelShown = "databindingPanelShown"
Data binding panel display event.
• Error = "error"
Dashboard designer error event.
• InspectorShown = "inspectorShown"
Property panel display event.
• InspectorHidden = "inspectorHidden"
Property panel hidden event.
• Loaded = "loaded"
Dashboard designer loading complete event.
• MobileViewEntered = "mobileViewEntered"
Enter the mobile view event.
• MobileViewExited = "mobileViewExited"
Exit mobile view event.
• PreviewEntered = "previewEntered"
Enter the preview state event.
• PreviewExited = "previewExited"
Exit preview state event.
• Rendered = "rendered"
Dashboard designer rendering complete event.
• Saved = "saved"
Dashboard document save complete event.
• Failed = "failed"
• Mounted = "mounted"
• Render = "render"
• Rendered = "rendered"
• SelectionChange = "selectionChange"
• Update = "update"
• DrillTo = "drillTo"
• Exclude = "exclude"
• JumpTo = "jumpTo"
• Keep = "keep"
• None = "none"
• ShowTooltip = "showTooltip"
• Container = "container"
• EmbeddedDashboard = "embeddedDashboard"
• EmbeddedReport = "embeddedReport"
• EmbeddedScene = "3DScene"
• Group = "group"
• MergedChart = "mergedChart"
• Picture = "picture"
• PivotChart = "pivotChart"
• RichEditor = "richEditor"
• Slicer = "slicer"
• SpreadChart = "spreadChart"
• TabContainer = "tabContainer"
• Visual = "visual"
• Auto = "auto"
• Default = "default"
• Hide = "hide"
• Show = "show"
• new DashboardDesigner(): DashboardDesigner
▸ addVisual(visualName, width?, height?, left?, top?): Promise<string>\
Adds a new scenario to the current document.
Name | Type | Description |
|---|---|---|
|
| The visual name of the new scenario. Here are some built-in visual names, "richEditor", "picture","container", "tabContainer", "spreadChart", "mergedChart", "embeddedDashboard", "embeddedReport", "treeSlicer", "dateRangeSlicer", "comboBoxSlicer", "labelSlicer", "relativeDateSlicer", "dataRangeSlicer", "column", "stackedColumn", "percentStackedColumn", "rangeColumn", "bar", "stackedBar", "percentStackedBar", "rangeBar", "line""area", "stackedArea", "percentStackedArea", "rangeArea", "pie", "donut", "rose", "radialStackedBar", "stackedBarInPolar", "sunburst", "barInPolar", "radar", "filledRadar", "scatter", "bubble", "treeMap", "combined", "funnel", "gauge", "indicator", "KPI", "pivotTable", "dataTable", "kpiMatrix", "map", "webContent", "floorPlan", "card", "candlestick", "KpiKanban", etc. If the added scenario is a custom visual chart, the visual name is defined by its author. |
|
| The width of the new scenario. |
|
| The height of the new scenario. |
|
| The left position of the new scenario. |
|
| The top position of the new scenario. |
Promise<string>
Sample Code
designer.addVisual(
visualName: 'column',
width: 400,
height: 300,
left: 0,
top: 0
);▸ addVisualByTemplateId(templateId, left?, top?): Promise<string>
Adds a new scenario by template to the current document.
Name | Type | Description |
|---|---|---|
|
| The scenario template id of the new scenario. |
|
| The left position of the new scenario. |
|
| The top position of the new scenario. |
Promise<string>
Sample Code
designer.addVisualByTemplateId(
templateId: '658f8e5c-81a2-4a0c-a016-84ba52368b29',
left: 0,
top: 0
);▸ destroy(): void
Releases the resources of the dashboard designer instance.
void
▸ hideDataBindingPanel(): void
Hides the data binding panel of the dashboard designer.
void
▸ hideInspector(): void
Hides the inspector panel of the dashboard designer.
void
▸ initialize(initOption): Promise<void>
Initializes a designer instance and returns a promise.
Name | Type |
|---|---|
|
Promise<void>
Sample Code
designer.initialize({
container: document.querySelector("#dashboard"),
defaults: {
datasetId
},
features: {
actionbarItems : ["focus","annotation","shareScenario"]
},
onLoaded: (docName) => {
document.title = docName;
}
});▸ isDocumentDirty(): boolean
Returns a bool value indicating whether the state of the current document is dirty.
boolean
▸ off(eventType, eventHandler): void
Unsubscribes from a dashboard event.
Name | Type |
|---|---|
| |
| (... |
void
▸ on(eventType, eventHandler): void
Subscribes to a dashboard event.
Name | Type |
|---|---|
| |
| (... |
void
▸ save(option?): Promise<boolean>
Saves the current document.
Name | Type |
|---|---|
|
Promise<boolean>
Sample Code
designer.save({
name: 'xxxxx',
categories: ['xx'],
comment: 'xxxx',
shouldPublish: true
});▸ setDatasetId(datasetId): void
Specifies a dataset for the current scenario.
Name | Type | Description |
|---|---|---|
|
| The dataset id. |
void
▸ showDataBindingPanel(): void
Shows the data binding panel of the dashboard designer.
void
▸ showInspector(): void
Shows the inspector panel of the dashboard designer.
void
▸ togglePreview(option?): void
Switches designer's view mode. If the designer is now in the 'Design' state, then it will go to the 'Preview' state, and vice versa.
Name | Type |
|---|---|
|
void
• new DashboardLiteViewer(): DashboardLiteViewer
▸ destroy(): void
Releases the resources of the Lite viewer instance.
void
▸ executeCommand(option): Promise<void>
Provides some events for users to control the current document.
Name | Type |
|---|---|
|
Promise<void>
Sample Code
liteViewer.executeCommand({
name: 'DrillDown', // or 'Drill'
payload: {
target: 'column',
drillDimension: 'Region',
}
}).then(() => {
// drill down successfully
}).catch((err) => {
console.log(err);
});▸ getDatasets(): Promise<any[]>
Returns all the used datasets.
Promise<any[]>
▸ getUIDashboard(): UIDashboard
Returns UIDashboard instance.
▸ initialize(initOption): Promise<any>
Initializes a Lite viewer instance and returns a promise.
Name | Type |
|---|---|
|
Promise< UIDashboard>
Sample Code
liteViewer.initialize({
container: document.querySelector("#dashboard"),
defaults: {
dashboardId: 'xxxxxx',
},
features: {
actionbarItems : ["focus","annotation","shareScenario"]
},
onLoaded: (docName) => {
document.title = docName;
}
});▸ requestFullScreen(): void
Makes the current document enter full-screen mode.
void
▸ setParameterValue(parameters): void
Sets parameter values for the current document.
Name | Type |
|---|---|
|
|
void
Sample code
viewer.setParameterValue({
p1: ['product1'],
p2: [['dd1', '2018'], ['dd2', '2017']]
})• new DashboardViewer(): DashboardViewer
▸ destroy(): void
Releases the resources of the viewer instance.
void
▸ executeCommand(option): Promise<void>
Provides some events for users to control the current document.
Name | Type |
|---|---|
|
Promise<void>
Sample Code
viewer.executeCommand({
name: 'DrillDown', // or 'Drill'
payload: {
target: 'column',
drillDimension: 'Region',
}
}).then(() => {
// drill down successfully
}).catch((err) => {
console.log(err);
});▸ getDatasets(): Promise<any[]>
Returns all the used datasets.
Promise<any[]>
▸ initialize(initOption): Promise<void>
Initializes a standard viewer instance and returns a promise.
Name | Type |
|---|---|
|
Promise<void>
Sample Code
viewer.initialize({
container: document.querySelector("#viewer"),
defaults: {
dashboardId: 'xxxxxx',
},
features: {
actionbarItems : ["focus","annotation","shareScenario"]
},
onLoaded: (docName) => {
document.title = docName;
}
});▸ requestFullScreen(): void
Makes the current document enter full-screen mode.
void
▸ setParameterValue(parameters): void
Sets parameter values for the current document.
Name | Type |
|---|---|
|
|
void
Sample code
viewer.setParameterValue({
p1: ['product1'],
p2: [['dd1', '2018'], ['dd2', '2017']]
})↳ UIContainer
• scenarioType: ScenarioType
• scenarios: UIScenario[]
▸ connect(container): void
Name | Type |
|---|---|
|
|
void
▸ disconnect(): void
void
▸ getName(): string
string
▸ getScenarioByID(scenarioID): UIScenario
Name | Type |
|---|---|
|
|
▸ getScenarioByName(scenarioName): UIScenario
Name | Type |
|---|---|
|
|
▸ getTitle(): string
string
▸ isConnected(): boolean
boolean
▸ off(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ on(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ once(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ refresh(): void
void
▸ resize(): void
void
▸ resume(): void
void
▸ suspend(): void
void
↳ UIDashboard
• pages: UIPage[]
▸ connect(container): void
Name | Type |
|---|---|
|
|
void
UIWidget.connect
▸ disconnect(): void
void
UIWidget.disconnect
▸ getCurrentPage(): UIPage
▸ getName(): string
string
▸ getPageByID(id): UIPage
Name | Type |
|---|---|
|
|
▸ getPageByName(pageName): UIPage
Name | Type |
|---|---|
|
|
▸ getScenarioByID(scenarioID): UIScenario
Name | Type |
|---|---|
|
|
▸ getScenarioByName(scenarioName): UIScenario
Name | Type |
|---|---|
|
|
▸ isConnected(): boolean
boolean
▸ off(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ on(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ once(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ refresh(): void
void
UIWidget.refresh
▸ resize(): void
void
UIWidget.resize
▸ resume(): void
void
UIWidget.resume
▸ showNextPage(): UIPage
▸ showPrevPage(): UIPage
▸ suspend(): void
void
UIWidget.suspend
↳ UIPage
• containers: UIScenario[]
• scenarios: UIScenario[]
• widgets: UIScenario[]
▸ connect(container): void
Name | Type |
|---|---|
|
|
void
UIWidget.connect
▸ disconnect(): void
void
UIWidget.disconnect
▸ getName(): string
string
UIWidget.getName
▸ getScenarioByID(scenarioID): UIScenario
Name | Type |
|---|---|
|
|
▸ getScenarioByName(scenarioName): UIScenario
Name | Type |
|---|---|
|
|
▸ isConnected(): boolean
boolean
UIWidget.isConnected
▸ off(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
UIWidget.off
▸ on(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
UIWidget.on
▸ once(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ refresh(): void
void
UIWidget.refresh)
▸ resize(): void
void
UIWidget.resize
▸ resume(): void
void
UIWidget.resume
▸ suspend(): void
void
UIWidget.suspend
↳ UIScenario
• scenarioType: ScenarioType
▸ connect(container): void
Name | Type |
|---|---|
|
|
void
UIWidget.connect
▸ disconnect(): void
void
UIWidget.disconnect
▸ getName(): string
string
UIWidget.getName
▸ getTitle(): string
string
▸ isConnected(): boolean
boolean
UIWidget.isConnected
▸ off(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
UIWidget.off
▸ on(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
UIWidget.on
▸ once(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ refresh(): void
void
▸ resize(): void
void
▸ resume(): void
void
▸ suspend(): void
void
UIWidget
↳ UIPage
▸ connect(container): void
Name | Type |
|---|---|
|
|
void
▸ disconnect(): void
void
▸ getName(): string
string
▸ isConnected(): boolean
boolean
▸ off(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ on(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ once(type, cb): void
Name | Type |
|---|---|
| |
| (... |
void
▸ refresh(): void
void
▸ resize(): void
void
▸ resume(): void
void
▸ suspend(): void
void
Ƭ CommandOption: Object
The options for executing the command.
name: CommandName
The event name of the command.
payload: SwitchTabCommandPayload | SwitchPageCommandPayload | DrillDownCommandPayload | DrillUpCommandPayload | DrillResetCommandPayload | ToggleScenarioCommandPayload | ShowScenarioCommandPayload | HideScenarioCommandPayload
The payload of each command.
Ƭ DashboardDesignerConfig: DashboardDesignerInitOption & Partial<DashboardDesignerDefaults> & WynBIOption & commonConfig
Ƭ DashboardDesignerDefaults: Object
The default properties of DashboardDesignerInitOption.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clickAction?: string
The dashboard click actions.
containerFilterScope?: string
The dashboard container filter scope.
contextMenuActions?: string
The dashboard context menu actions.
dashboardId?: string
The dashboard ID.
datasetId?: string
The dashboard dataset ID.
dbdTemplateId?: string
The id of dashboard created with dashboard template.
documentThemeId?: string
The dashboard document theme ID.
dp?: object | string
The dashboard parameters.
enableDeveloperMode?: boolean
Enable developer mode for custom visual dev tools.
lng?: string
The language of the user interface.
notificationTime?: number
The setting for dashboard notification time.
templateId?: string
The template ID to create a dashboard document.
theme?: string
The dashboard theme.
Ƭ DashboardDesignerFeatures: Object
The features and properties of DashboardDesignerInitOption.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
actionbarItems?: string[]
Define the action bar's action white list.
componentCategories?: string[]
Control which component categories are available in the designer.
disableAnimation?: boolean
Control the animation enabled.
disableChangeDataset?: boolean
Control whether the user can change the binding dataset of the scenario.
showCloseButton?: boolean
Control the visibility of the close button.
showDataBindingPanel?: boolean
Control the visibility of the designer's data binding panel.
showHelpButton?: boolean
Control the visibility of the help button.
showInspector?: boolean
Control the visibility of the designer inspector.
showInspectorWhenOpen?: boolean
Control the visibility of the inspector when it is open.
showMobileDesigner?: boolean
Control the visibility of the mobile designer.
showPanelWhenOpen?: boolean
Control the visibility of the panel when it is open.
showWizard?: boolean
Control the visibility of the wizard.
toolbar?: "show" | "hide"
Control the visibility of the toolbar.
Ƭ DashboardDesignerInitOption: Object
The options for initializing a dashboard designer.
Name | Type |
|---|---|
|
|
| |
| |
| () => |
| ( |
| ( |
| () => |
| ( |
container?: Element
A DOM element used to mount the dashboard designer.
defaults?: DashboardDesignerDefaults
Default options for initializing a dashboard designer.
features?: DashboardDesignerFeatures
Features options for initializing a dashboard designer.
onClose?: () => void
This is a callback function; it will be invoked when the designer is closed.
onError?: (errorInfo: object) => void
This is a callback function that will be invoked when the document has any error messages.
onLoaded?: (docName: string) => void
This is a callback function; it will be invoked after the designer is loaded.
onMount?: () => void
This is a callback function; it will be invoked after the designer is mounted.
onSave?: (docName: string, id: string) => void
This is a callback function that will be invoked when users save a document.
Ƭ DashboardLiteViewerConfig: DashboardLiteViewerInitOption & Partial<DashboardLiteViewerDefaults> & WynBIOption & commonConfig
Ƭ DashboardLiteViewerDefaults: Object
The default properties of DashboardLiteViewerInitOptions.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clickAction?: string
The dashboard click actions.
containerFilterScope?: string
The dashboard container filter scope.
contextMenuActions?: string
The dashboard context menu actions.
dashboardId: string
The dashboard ID.
documentThemeId?: string
The dashboard document theme ID.
dp?: object | string
The dashboard parameters.
hideErrors?: boolean
Hide all dashboard error notifications.
lng?: string
The language of the user interface.
notificationTime?: number
The setting of the dashboard notification time.
pageNumber?: string
The viewer page number starts from 1.
scenario?: string
The single scenario name.
showScenarioTitle?: boolean
Allow showing the scenario title only when doing single scenario integration.
theme?: string
The dashboard theme.
Ƭ DashboardLiteViewerFeatures: Object
The features and properties of DashboardLiteViewerInitOptions.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
actionbarItems?: string[]
Define the action bar's action white list.
disableAnimation?: boolean
Control the animation enabled.
disableAutoScroll?: boolean
Control the autoscroll enabled.
disableAutoSwitchPage?: boolean
Control the auto-switch page enabled.
Ƭ DashboardLiteViewerInitOption: Object
The options for initializing a dashboard lite viewer.
Name | Type |
|---|---|
|
|
| |
| |
|
|
container?: Element
A DOM element used to mount the dashboard lite viewer.
defaults?: DashboardViewerDefaults
Default options for initializing a dashboard lite viewer.
features?: DashboardViewerFeatures
Features options for initializing a dashboard lite viewer.
manual?: boolean
Disable auto connection to the UIDashboard.
Ƭ DashboardViewerConfig: DashboardViewerInitOption & Partial<DashboardViewerDefaults> & WynBIOption & commonConfig
Ƭ DashboardViewerDefaults: Object
The default properties of DashboardViewerInitOptions.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clickAction?: string
The dashboard click actions.
containerFilterScope?: string
The dashboard container filter scope.
contextMenuActions?: string
The dashboard context menu actions.
dashboardId: string
The dashboard ID.
documentThemeId?: string
The dashboard document theme id.
dp?: object | string
The dashboard parameters.
hideErrors?: boolean
Hide all dashboard error notifications.
lng?: string
The language of the user interface.
notificationTime?: number
The setting of dashboard notification time.
pageNumber?: string
The viewer page number starts from 1.
scenario?: string
The single scenario name.
showScenarioTitle?: boolean
Show scenario title only when doing single scenario integration.
size?: "fitheight" | "fittoheight" | "fitwidth" | "fittowidth" | "fitscreen" | "fittoscreen" | "auto"
Set the display mode of the dashboard in the viewer.
theme?: string
The dashboard theme.
Ƭ DashboardViewerFeatures: Object
The features and properties of DashboardViewerInitOptions.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
actionbarItems?: string[]
Define the action bar's action white list.
disableAnimation?: boolean
Control the animation enabled.
disableAutoScroll?: boolean
Control the autoscroll enabled.
disableAutoSwitchPage?: boolean
Control the auto switch page enabled.
hideToolbarActions?: boolean
Control the hidden toolbar action items.
Ƭ DashboardViewerInitOption: Object
The options for initializing a dashboard standard viewer.
Name | Type |
|---|---|
|
|
| |
| |
| () => |
| ( |
| ( |
| () => |
| ( |
container?: Element
A DOM element used to mount the dashboard standard viewer.
defaults?: DashboardViewerDefaults
Default options for initializing a dashboard standard viewer.
features?: DashboardViewerFeatures
Features options for initializing a dashboard standard viewer.
onClose?: () => void
Invoked when the designer is closed.
onError?: (errorInfo: object) => void
Invoked when the document has any error messages.
onLoaded?: (docName: string, id: string) => void
Invoked after the designer loaded.
onMount?: () => void
Invoked after the designer mounted.
onRendered?: (docName: string) => void
Invoked after the designer rendered.
Ƭ DocumentSaveOption: Object
The options of saving the current document.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
categories?: string[]
Specify categories for the current document.
comment?: string
Add a comment to the current document.
name?: string
Specify a name for the current document.
shouldPublish?: boolean
Publish the current document when the server enables the draft function.
Ƭ DocumentSyncOption: Object
The options for synchronizing the state change or not.
Name | Type |
|---|---|
|
|
syncChanges?: boolean
If there are some state changes in the preview, the designer will show the sync dialog. Use this parameter to synchronize changes to the current document and to control the visibility of the sync dialog.
Ƭ DrillDownCommandPayload: Object
The payload of executing 'DrillDown' command.
Name | Type |
|---|---|
|
|
|
|
drillDimension?: string
The name of a target dimension. Available only when the drill type is All or List; if the drill type is Path, the drillDimension is ignored and drill to the dimension specified at data binding.
target: string
The name of a scenario that you want to control.
Ƭ DrillResetCommandPayload: Object
The payload of executing 'ResetDrill' command.
Name | Type |
|---|---|
|
|
target: string
The name of a scenario that you want to control.
Ƭ DrillUpCommandPayload: Object
The payload of executing 'DrillUp' command.
Name | Type |
|---|---|
|
|
target: string
The name of a scenario that you want to control.
Ƭ HideScenarioCommandPayload: Object
The payload of executing 'HideScenario' command.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
delay?: number
The delay time(s) for executing the command.
duration?: number
The duration time(s) of showing or hiding a scenario.
leaveAnimation?: "none" | "top" | "bottom" | "left" | "right" | "fadeIn"
The animation type of hiding a scenario.
scenarioId?: string
The ID of a scenario.
target: string
The name of a scenario that you want to control.
Ƭ SceneConfig: Object
The options of initializing a dashboard designer.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
docId?: string
The scene id.
documentThemeId?: string
The scene theme id.
lng?: string
The language of the user interface.
theme?: string
The scene theme.
Ƭ SceneDesignerConfig: SceneDesignerInitOption & SceneConfig & WynBIOption & commonConfig
Ƭ SceneDesignerInitOption: Object
Name | Type |
|---|---|
|
|
| () => |
| ( |
| ( |
| () => |
| ( |
container?: Element
A DOM element used to mount the scene designer.
onClose?: () => void
Invoked when the designer is closed.
onError?: (errorInfo: object) => void
Invoked when the document has any error message.
onLoaded?: (docName: string, id: string) => void
Invoked after the designer loaded.
onMount?: () => void
Invoked after the designer mounted.
onSave?: (id: string) => void
This is a callback function, it will be invoked when users save a document.
Ƭ SceneViewerConfig: SceneViewerInitOption & SceneConfig & WynBIOption & commonConfig
Ƭ SceneViewerInitOption: Object
Name | Type |
|---|---|
|
|
| () => |
| ( |
| ( |
| () => |
| ( |
container?: Element
A DOM element used to mount the scene viewer.
onClose?: () => void
Invoked when the viewer is closed.
onError?: (errorInfo: object) => void
Invoked when the document has any error message.
onLoaded?: (docName: string, id: string) => void
Invoked after the viewer is loaded.
onMount?: () => void
Invoked after the viewer is mounted.
onRendered?: (docName: string) => void
Invoked after the viewer is rendered.
Ƭ ShowScenarioCommandPayload: Object
The payload of executing 'ShowScenario' command.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
delay?: number
The delay time(s) for executing the command.
duration?: number
The duration time(s) of showing or hiding a scenario.
enterAnimation?: "none" | "top" | "bottom" | "left" | "right" | "fadeIn"
The animation type of showing a scenario.
scenarioId?: string
The ID of a scenario.
target: string
The name of a scenario that you want to control.
Ƭ SwitchPageCommandPayload: Object
The payload of executing 'SwitchPage' command.
Name | Type |
|---|---|
|
|
|
|
|
|
index?: number
The index of the page.
name?: string
The name of the page.
pageId?: string
The id of the page.
Ƭ SwitchTabCommandPayload: Object
The payload of executing 'SwitchTab' command.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
containerId?: string
The ID of the container.
index?: number
The index of a tab of the container.
name?: string
The name of a tab of the container.
target: string
The name of the container that you want to control.
Ƭ ToggleScenarioCommandPayload: Object
The payload of executing 'ToggleScenario' command.
Name | Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
delay?: number
The delay time(s) for executing the command.
duration?: number
The duration time(s) of showing or hiding a scenario.
enterAnimation?: "none" | "top" | "bottom" | "left" | "right" | "fadeIn"
The animation type of showing a scenario.
leaveAnimation?: "none" | "top" | "bottom" | "left" | "right" | "fadeIn"
The animation type of hiding a scenario.
scenarioId?: string
The ID of a scenario.
target: string
The name of a scenario that you want to control.
Ƭ WynBIOption: Object
The basic option to create a WynBI instance.
| Name | Type |
Name | Type |
|---|---|
|
|
|
|
|
|
baseUrl: string
The web address of your Wyn server.
token: string
The access token that is generated from the Admin portal.
tokenKey?: string
Set the key name used in query parameters, this name is configured in the Wyn config file.
If tokenKey is not specified, the default value 'token' is used.
Example
tokenKey: 'tkn'Ƭ WynDashboardApp<T>: T extends "DashboardDesigner" ? DashboardDesigner : T extends "DashboardViewer" ? DashboardViewer : T extends "ViewerLite" ? DashboardLiteViewer : any
Name | Type |
|---|---|
| extends |
Ƭ WynDashboardAppType: "DashboardDesigner" | "DashboardViewer" | "ViewerLite" | "SceneDesigner" | "SceneViewer"
Ƭ commonConfig: Object
Name | Type |
|---|---|
|
|
version?: string