Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Support Dash-Renderer 2.0 - *Breaking Changes* #128

Closed
chriddyp wants to merge 1 commit into master from components-as-props

Conversation

Copy link
Member

@chriddyp chriddyp commented Dec 15, 2017

This PR updates the components to support the features introduced in plotly/dash-renderer#32.

Namely, it will enable various properties across various components to accept arbitrary dash components as values.

For example, the label property in dcc.RadioItems will be able to take a arbitrary Dash component instead of just a string.

i.e., instead of this:

dcc.RadioItems(
 options=[
 {‘label’: ‘Item 1’, ‘value’: 1},

 {‘label’: ‘Item 2’, ‘value’: 1}
 ]
)

the developer could do this:

dcc.RadioItems(
 options=[
 {‘label’: html.Div(‘Item 1’, style={‘color’: ‘cyan’}), ‘value’: 1},

 {‘label’: ‘Item 2’, ‘value’: 1}
 ]
)

This would require a dependency upgrade of dash-renderer to a 2.0 series, which would cause other component libraries that are not compatible with that version to break. There should be no breaking changes within this library.

This PR is a work-in-progress.

ned2 reacted with thumbs up emoji
Copy link
Member Author

Prerelease versions are available with this code

pip install dash-core-components==0.16.0rc1
pip install dash-html-components==0.9.0rc1
pip install dash-renderer==0.13.0rc2
pip install dash-table-experiments==0.6.0rc1

Copy link
Contributor

@chriddyp Do we still want to keep this PR open, with regards to the new plan for 1.0 plotly/dash#469, and seeing as this is almost a year old?

@alexcjohnson alexcjohnson deleted the components-as-props branch February 27, 2019 22:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /