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.