shubhshah01 commented on issue #30374:
URL: https://github.com/apache/superset/issues/30374#issuecomment-2371239424

   @dosu I am using @superset-ui/embedded-sdk pkg to embed dashboards. 
   Below is the code
   ```js
   <!DOCTYPE html>
   <html lang="en">
   <head>
       <meta charset="UTF-8">
       <meta name="viewport" content="width=device-width, initial-scale=1.0">
       <title>Superset Embedding POC</title>
       <style>
           iframe {
               width: 100%;
               height: 100%;
               border: none;
           }
       </style>
       <script src="https://unpkg.com/@superset-ui/embedded-sdk";></script>
   </head>
   <body>
   <div style="width: 100%; height: 800px;" id="my-superset-container"></div>
   <script>
       const dashboardConfig = {
           hideTab: true,
           hideTitle: true,
           hideChartControls: true,
           filters: {
             visible: false,
             expanded: false,
          }
       };
       supersetEmbeddedSdk.embedDashboard({
           id: 'embedded-id',
           supersetDomain: 'domain',
           mountPoint: document.getElementById("my-superset-container"),
           fetchGuestToken: () => 'guest-token',
           dashboardUiConfig: dashboardConfig,
       });
   </script>
   </body>
   </html>
   ```


-- 
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]

Reply via email to