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

Add shorthand options to Core Components #1749

Closed

Conversation

akksi
Copy link
Contributor

@akksi akksi commented Sep 9, 2021

@akksi akksi changed the title Feature/react component option shorthands Add shorthand options to Core Components Sep 9, 2021
@akksi
Copy link
Contributor Author

akksi commented Sep 9, 2021

2 important notes:

  1. If there is no value passed to RangeSlider, the React Component passes back the values derived from the Range values and the Python update function updates the values correctly, but until this happens, Python raises an error. This can be solved by adding default properties to slider_range. Not sure if it can be handled on React side.

  2. For DataTable, the Python DataFrame object can't be passed directly to a React component so my current implementation accepts df.to_dict('split') as it contains both the columns and data in the right order (df.to_dict('records') doesn't preserve the order of columns).

@alexcjohnson
Copy link
Collaborator

superseded by #1763

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

Successfully merging this pull request may close these issues.

2 participants