React visualization plugin missing access to config and editorConfig

There are two things that seem missing when creating React visualization plugins.

  1. Passing editor config values to your React components that don't get saved in the plugin saved object. (i.e. editorConfig: {collections} is not possible since these are not passed in as properties to the React components).
  2. Getting access to the config object to load objects from the ui_setting_default.js file. I feel like this should have been in the vis.API object but it's missing.

You can access UI settings via the chrome global import

import chrome from 'ui/chrome';
const isDarkMode = chrome.getUiSettingsClient().get('theme:darkMode', false);

Ah, thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.