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 allow non-components #259

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

Suggestion: app$layout should allow non-components #259

daattali opened this issue Jun 1, 2021 · 1 comment

Comments

@daattali
Copy link
Contributor

daattali commented Jun 1, 2021

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))
@alexcjohnson
Copy link
Collaborator

See also: 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