Reveal View
The Reveal SDK Web Component Wrappers are currently under development, and we welcome your feedback to help us improve for the final release.
The documentation for the Wrappers are under construciton, but we didn't want to wait until they were done before sharing.
<rv-reveal-view dashboard="Sales"></rv-reveal-view>
Properties
dashboard
Type: string | unknown
Gets or sets the dashboard to display in the RevealView component.
dashboardLinkRequested
Type: (args: DashboardLinkRequestedArgs) => string
Callback triggered when a dashboard link is requested.
dataLoading
Type: (args: DataLoadingArgs) => void
Callback triggered when data is loading.
dataPointClicked
Type: (args: DataPointClickedArgs) => void
Callback triggered when a data point is clicked.
dataSourceDialogOpening
Type: (args: DataSourceDialogOpeningArgs) => void
Callback triggered when the data source dialog is opening.
dataSourcesRequested
Type: (args: DataSourcesRequestedArgs) => any
Callback triggered when data sources are requested.
revealView.dataSourcesRequested = (args: DataSourcesRequestedArgs) => {
const restDataSource = new $.ig.RVRESTDataSource();
restDataSource.url = "https://excel2json.io/api/share/6e0f06b3-72d3-4fec-7984-08da43f56bb9";
restDataSource.title = "Sales by Category";
restDataSource.subtitle = "Excel2Json";
restDataSource.useAnonymousAuthentication = true;
return { dataSources: [restDataSource], dataSourceItems: [] };
}
dateFilter
Type: any
Gets the dashboard date filter.
editModeEntered
Type: (args: EditModeEnteredArgs) => void
Callback triggered when edit mode is entered.
revealView.editModeEntered = (e: EditModeEnteredArgs) => {
console.log("Edit mode entered", e.dashboard);
}
editModeExited
Type: (args: EditModeExitedArgs) => void
Callback triggered when edit mode is exited.
revealView.editModeExited = (e: EditModeExitedArgs) => {
console.log("Edit mode exited", e.dashboard);
}
editorClosed
Type: (args: EditorClosedArgs) => void
Callback triggered when the editor is closed.
editorClosing
Type: (args: EditorClosingArgs) => void
Callback triggered when the editor is closing.
editorOpened
Type: (args: EditorOpenedArgs) => void
Callback triggered when the editor is opened.
editorOpening
Type: (args: EditorOpeningArgs) => void
Callback triggered when the editor is opening.
fieldsInitializing
Type: (args: FieldsInitializingArgs) => void
Callback triggered when fields are initializing.
filters
Type: DashboardFilters
Gets the dashboard filters.
imageExported
Type: (image: ImageExportedArgs) => void
Callback triggered when an image is exported.
initialized
Type: () => void
Callback triggered when the RevealView component is initialized.
linkSelectionDialogOpening
Type: (args: LinkSelectionDialogOpeningArgs) => void
Callback triggered when a link selection dialog is opening.
menuOpening
Type: (args: MenuOpeningArgs) => void
Callback triggered when a menu is opening.
options
Type: RevealViewOptions
Gets or sets the options for the RevealView component.
saving
Type: (args: SavingArgs) => void
Callback triggered when a dashboard is saving.
seriesColorRequested
Type: (args: SeriesColorRequestedArgs) => string
Callback triggered when a series color is requested.
tooltipShowing
Type: (args: TooltipShowingArgs) => void
Callback triggered when a tooltip is showing.
Methods
addTextBoxVisualization
Adds a textbox visualization to the dashboard.
addTextBoxVisualization()
Returns: void
addVisualization
Adds a visualization to the dashboard.
addVisualization()
Returns: void