topratiksharma commented on issue #22820:
URL: https://github.com/apache/superset/issues/22820#issuecomment-1399574120
Was supplying iFrame element instead of a div.
```
public embed() {
// const token = await this.fetchGuestTokenFromBackend();
const element = document.getElementById('my-dashboard');
embedDashboard({
id: '5a99f740-1f70-46f5-8563-422ec22badcb', // given by the Superset
embedding UI
supersetDomain: 'http://localhost:8088',
mountPoint: element, // any html element that can contain an iframe
fetchGuestToken: () => this.fetchGuestTokenFromBackend(),
dashboardUiConfig: {
// dashboard UI config: hideTitle, hideTab, hideChartControls,
filters.visible, filters.expa0nded (optional)
hideTitle: true,
// filters: { expanded: true },
},
});
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]