You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "vitmuathu (via GitHub)" <gi...@apache.org> on 2023/03/06 03:30:43 UTC
[GitHub] [superset] vitmuathu opened a new issue, #23278: How can i use Jinja parameters when using embed dashboard
vitmuathu opened a new issue, #23278:
URL: https://github.com/apache/superset/issues/23278
Hi, I am not sure how to use jinja parameters when embedding a dashboard into my front-end project.
```js
<script>
supersetEmbeddedSdk.embedDashboard({
id: '66888f24-b258-4d3d-a43f-de3d443bab6f', // given by the Superset embedding UI
supersetDomain: 'http://localhost:8083',
mountPoint: document.getElementById('container'), // any html element that can contain an iframe
fetchGuestToken: () =>
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjp7InVzZXJuYW1lIjoidGVzdCJ9LCJyZXNvdXJjZXMiOlt7InR5cGUiOiJkYXNoYm9hcmQiLCJpZCI6IjY2ODg4ZjI0LWIyNTgtNGQzZC1hNDNmLWRlM2Q0NDNiYWI2ZiJ9XSwicmxzX3J1bGVzIjpbXSwiaWF0IjoxNjc3NzM5ODA1LjM1MDk3MzQsImV4cCI6MzE2Nzc3Mzk4MDUuMzUwOTc1LCJhdWQiOiJodHRwOi8vMC4wLjAuMDo4MDgwLyIsInR5cGUiOiJndWVzdCJ9.BNlQtByqEYQFKZhKmYJroY6dDQ6-jKB68ePLMmx5cvU', // guest_token
dashboardUiConfig: {
hideTitle: true,
hideChartControls: true,
hideTab: true,
filters: {
expanded: false,
}
} // dashboard UI config: hideTitle, hideTab, hideChartControls (optional)
})
</script>
```
This is the code I'm using to embed a dashboard. How can I pass jinja parameters to this iframe?
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] How can I use Jinja parameters when embedding a dashboard? [superset]
Posted by "geido (via GitHub)" <gi...@apache.org>.
geido commented on issue #23278:
URL: https://github.com/apache/superset/issues/23278#issuecomment-1959310918
Hello @vitmuathu please refer to this discussion for more details https://github.com/apache/superset/discussions/21956. I am closing this one as I believe the discussion already captures the essence of this issue. Thank you
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] jileeon commented on issue #23278: How can I use Jinja parameters when embedding a dashboard?
Posted by "jileeon (via GitHub)" <gi...@apache.org>.
jileeon commented on issue #23278:
URL: https://github.com/apache/superset/issues/23278#issuecomment-1465696373
Hi @vitmuathu, It may be related with https://github.com/apache/superset/pull/23344.
Thanks.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] How can I use Jinja parameters when embedding a dashboard? [superset]
Posted by "geido (via GitHub)" <gi...@apache.org>.
geido closed issue #23278: How can I use Jinja parameters when embedding a dashboard?
URL: https://github.com/apache/superset/issues/23278
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org