-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix serialization issue #303
Conversation
cc2c3d0
to
61e0972
Compare
Signed-off-by: martinRenou <martin.renou@gmail.com>
61e0972
to
9e3b226
Compare
@@ -336,14 +348,17 @@ class DataGrid(DOMWidget): | |||
selection_mode = Enum( | |||
default_value="none", values=["row", "column", "cell", "none"] | |||
).tag(sync=True) | |||
selections = List(Dict()).tag(sync=True, **widget_serialization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing the widgets serializer here, we don't need it as it's a simple dictionary?
auto_fit_columns = Bool(False).tag(sync=True) | ||
auto_fit_params = Dict( | ||
{"area": "all", "padding": 30, "numCols": None}, allow_none=False | ||
).tag(sync=True, **widget_serialization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and everything works as expected. Looks great! Thank you ❤️🔥
The
renderers
serialization was not returning valid JSON, this PR fixes it