dashR icon indicating copy to clipboard operation
dashR copied to clipboard

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

Open daattali opened this issue 4 years ago • 1 comments

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()

daattali avatar Jun 01 '21 20:06 daattali

Also related to https://github.com/plotly/dash/issues/1620

alexcjohnson avatar Jun 01 '21 21:06 alexcjohnson