Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement both Default/Desktop and Mobile device types #26

Open
paarriagadap opened this issue Apr 2, 2022 · 6 comments
Open

Implement both Default/Desktop and Mobile device types #26

paarriagadap opened this issue Apr 2, 2022 · 6 comments
Labels
needs investigation question Further information is requested

Comments

@paarriagadap
Copy link

Hello, I was wondering if you know how to implement the Embedding API v3 with the possibility to use both the Default or Desktop device setting together with the Mobile option. It seems the v2 and v3 only allow to choose one of them, while the v1 from the 'share' dialog works for any device it is previously set.

Thanks!

@illonage
Copy link
Collaborator

Hi @paarriagadap - Thank you for opening this issue. Do you mind clarifying what you mean by using both the default or desktop device setting together with the mobile option? What are you trying to achieve?

@illonage illonage added the question Further information is requested label May 24, 2022
@paarriagadap
Copy link
Author

Hi! I'm trying to embed Tableau visualizations in a website, and show the Mobile design when using a mobile phone and the Desktop design when using a desktop device. It seems it's not possible with the API, as I'm forced to select only one of them. It is not the case with the embed code available at Tableau Public, for instance. With the Mobile/Desktop design I mean the layouts described here.

@illonage
Copy link
Collaborator

Hi @paarriagadap - Yes, you can using HTML Attribute define which design you want to embed in your application. The HTML Attribute is called device. You can learn more about it in our documentation here.

I hope it helps

@paarriagadap
Copy link
Author

paarriagadap commented Jun 21, 2022

Hi, I know the device attribute exists, I'm saying it seems not possible to implement both Desktop and Mobile settings at the same time, because obviously the desktop and phone attributes keep only one of them and now I realise that the default or blank settings do show both desktop and mobile settings when needed, but with a blank space when one of them has a longer height than the other, something that doesn't happen with the v1 share dialog still available.

See here, with the API v3:
https://raw.githubusercontent.com/paarriagadap/tableautest/main/testv3.html

And with the API v1:
https://raw.githubusercontent.com/paarriagadap/tableautest/main/testv1.html

@illonage
Copy link
Collaborator

illonage commented Jun 24, 2022

Hi @paarriagadap - Do you have a repro of the issue you are seeing in v3?

@paarriagadap
Copy link
Author

It can be seen when opening the html files after download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants