NPellet / visualizer

Other
42 stars 24 forks source link

Module specific toolbar options #1115

Closed lpatiny closed 5 years ago

lpatiny commented 5 years ago

I would need the possibility to define in some modules some predefined actions that I could just activate / desactivate with a checkbox.

It is somehow the same that 'Custom toolbar options' but instead of having to define the icon, action, etc it would be defined in the definition of the module with already the hardcode icon.

Currently I have 2 applications in which I would like to implement those actions:

targos commented 5 years ago

I'm not really sure what you are asking for. Can't you extend the toolbar like you already do in the OCL editor? See https://github.com/NPellet/visualizer/blob/d47e29bcfcbb5c9b34ea77776b56b9cb1611511b/src/modules/types/science/chemistry/ocl_editor/controller.js#L15-L37

lpatiny commented 5 years ago

Thanks indeed I should be able to do what I want with this example. Completely forgot about those included helps in JSME and OCLE.