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

pass along "style" param from htmlwidgets html to custom html #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

pass along "style" param from htmlwidgets html to custom html #217

wants to merge 1 commit into from

Conversation

daattali
Copy link

I think the "style" param is necessary in order to have non-default width/height eg. fooWidget(width = "50%") without passing along the style, the width won't actually be 50%.

And I'm wondering if we need to use the ... arguments at all? Or is it always safe to ignore them?

I think the "style" param is necessary in order to have non-default width/height eg. `fooWidget(width = "50%")` without passing along the style, the width won't actually be 50%.

And I'm wondering if we need to use the `...` arguments at all?  Or is it always safe to ignore them?
@jcheng5
Copy link
Collaborator

jcheng5 commented Jul 14, 2016

Maybe a bad example, span tags don't respect width anyway... (unless you change their display mode to e.g. inline-block)

@daattali
Copy link
Author

@jcheng5 true, I neglected to realize this is a span specifically. Maybe the example should be left as-is but there should be a note nearby that says that the style param is also suggested to be passed through if they want the user-supplied height+width to go through. Or maybe I'm just wrong altogether - I only started looking at htmlwidgets this week and am a complete noob...

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

Successfully merging this pull request may close these issues.

2 participants