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

Widget in full size #114

Open
maelmadon opened this issue Jul 20, 2018 · 3 comments
Open

Widget in full size #114

maelmadon opened this issue Jul 20, 2018 · 3 comments

Comments

@maelmadon
Copy link

Hi there,
Is there a way to modify the size of a widget? It would like it to use the full page whereas it seems to have a maximum height by default :/...
Moreover, how can we get a URL out of a widget? It is possible through ODS plateform, using the tab "Share" below our graph/table, but how to get one for a more complex dataviz that we cannot edit from the plateform?
It could be an other way for me to see me widget full-screen.
Thanks for your help!

@fpassaniti
Copy link

Hi Mema5,

Widget size is only a matter of CSS in most cases.
You should be able to define the size as you want. Most of the time they adapt in small placeholder, and they have a max width or height.

For exemple, ods-map has a full width, and a defined height, overriding the height on the ods-map tag works.
Ods-charts has a 100% width and height, it's then a matter of parent size.

I then advise you to have a look to the rendered page, and see where some height can be forced, and override them with custom CSS code.

If it doesn't work, do not hesitate to share a bunch of your code to let me have a look

@maelmadon
Copy link
Author

maelmadon commented Jul 20, 2018

Hi,

Thanks for your answer. I had a couple of tests but I couldn't find out the way to override the height in the tag.
For exemple I tried unsuccessfully:
<ods-map style="height:100%" context="conso"></ods-map>

Can you give me the syntax?

@maelmadon
Copy link
Author

Hi,
That's it I found what I was looking for!! The problem was that I wasn't using the ods-auto-resize directive: https://opendatasoft.github.io/ods-widgets/docs/#/api/ods-widgets.directive:odsAutoResize .
I'm happy now :) Thank you for your help!

Still, do you know if we can create a URL adress from a custom widget?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants