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 settings and theme to perspective-config-update DOM event and PerspectiveWidget python class #1712

Merged
merged 2 commits into from
Jan 31, 2022

Conversation

texodus
Copy link
Member

@texodus texodus commented Jan 29, 2022

This PR updates the perspective-config-update event fired from <perspective-viewer> custom element in two ways:

  1. perspective-config-update is now fired when either the settings or theme property are changed, in addition to the other properties it fires for currently.
  2. Then event.detail property now includes theme, settings, plugin and plugin_config, mirroring the object returned from the .save() method.

In addition, Python traitlets have been added for settings and theme, allowing them to be manipulated programmatically from the PerspectiveWidget JupyterLab interface.

Fixes #1499

@texodus texodus added the bug Concrete, reproducible bugs label Jan 29, 2022
@texodus texodus changed the title Add settings traitlet to perspective-python Add settings and theme to perspective-config-update DOM event and PerspectiveWidget python class Jan 31, 2022
@texodus texodus merged commit 4c83f3b into master Jan 31, 2022
@texodus texodus deleted the settings-python branch January 31, 2022 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking bug Concrete, reproducible bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to programmatically set the toggle state of the side panel from Python
1 participant