dashR icon indicating copy to clipboard operation
dashR copied to clipboard

Suggestion: app$layout should allow non-components

Open daattali opened this issue 4 years ago • 1 comments

The layout only allows proper Dash components, which makes it cumbersome to add simple text to the page.

It would be helpful if the componentify internal function would allow other simple types like a string, a numeric, a date, a boolean, etc.

It would transform this:

app$layout(list(htmlSpan("My app"), htmlBr(), htmlSpan("By Dean Attali"), htmlBr(), htmlSpan("Version"), htmlSpan(2)))

into this:

app$layout(list("My app", htmlBr(), "By Dean Attali", htmlBr(), "Version", 2))

daattali avatar Jun 01 '21 20:06 daattali

See also: https://github.com/plotly/dash/issues/1620

alexcjohnson avatar Jun 01 '21 21:06 alexcjohnson