Skip to content

Add shorthand options to Core Components#1749

Closed
akksi wants to merge 10 commits into
plotly:devfrom
akksi:feature/react-component-option-shorthands
Closed

Add shorthand options to Core Components#1749
akksi wants to merge 10 commits into
plotly:devfrom
akksi:feature/react-component-option-shorthands

Conversation

@akksi

@akksi akksi commented Sep 9, 2021

Copy link
Copy Markdown
Contributor

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

akksi commented Sep 9, 2021

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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