srinigk commented on issue #23793:
URL: https://github.com/apache/superset/issues/23793#issuecomment-1683559544
I found a simpler fix, here is what I did. And it works for me.
`
const Dashboard = () => {
useEffect(() => {
embedDashboard({
id: dashboardId, // given by the Superset embedding UI
supersetDomain: "http://" + supersetDomain,
mountPoint: document.getElementById("my-superset-container"), // any
html element that can contain an iframe
fetchGuestToken: () => fetchGuestTokenFromBackend(),
dashboardUiConfig: {
// dashboard UI config: hideTitle, hideTab, hideChartControls,
filters.visible, filters.expanded (optional)
hideTitle: true,
hideTab: true,
hideChartControls: true,
filters: {
expanded: false
}
}
});
//hack to make the view 100% in height and width
document.getElementById("my-superset-container").children[0].width="100%";
document.getElementById("my-superset-container").children[0].height="100%";
`
--
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]