How to use the teselagen-react-components.createCommandMenu function in teselagen-react-components

To help you get started, we’ve selected a few teselagen-react-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TeselaGen / openVectorEditor / src / ToolBar / downloadTool.js View on Github external
const Dropdown = withEditorProps(props => {
  return (
    <menu>
      {createCommandMenu(
        [
          "exportSequenceAsGenbank",
          "exportSequenceAsFasta",
          "exportSequenceAsTeselagenJson"
        ],
        getCommands({ props })
      )}
    </menu>
  );
});
github TeselaGen / openVectorEditor / src / ToolBar / visibilityTool.js View on Github external
const VisibilityOptions = withEditorProps(function(props) {
  return (
    <menu>
      {createCommandMenu(viewSubmenu, getCommands({ props }), {
        useTicks: true,
        omitIcons: true
      })}
    </menu>
  );
});