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

Suggestion: app$layout should be more flexible by allowing a comma-separated list of arguments #258

Open
daattali opened this issue Jun 1, 2021 · 1 comment

Comments

@daattali
Copy link
Contributor

daattali commented Jun 1, 2021

Dash layout is meant to allow a collection, so that if I want to show two components, I have to place them inside a list (although doesn't currently work #257):

app <- Dash$new()
app$layout(list(htmlDiv("foo"), htmlDiv("bar")))

A much more convenient feature would be to allow the user to pass any number of arguments, comma-separated, like so:

app <- Dash$new()
app$layout(htmlDiv("foo"), htmlDiv("bar"))

Currently the only way to make that work is by wrapping all the content inside a parent htmlDiv()

@alexcjohnson
Copy link
Collaborator

Also related to plotly/dash#1620

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