How To Customize Toolbar in OHIF Stand Alone Viewer v0.2.1?
Hello,
I'm trying to customize the main toolbar and can't find where the buttons are configured. In version 0.0.20 the toolbar buttons were configured in getDefaultToolbarButtons.js but in the current version(0.2.1) this has been changed. In the function _getVisibleToolbarButtons in ToolbarRow.js it appears the buttons are retrieved from the extensionManager but they are not defined in the extensionManager. The buttons are defined in /extensions/ohif-cornerstone-extension/src/toolbarModule.js however, If I comment out the Pan tool in /extensions/ohif-cornerstone-extension/src/toolbarModule.js and re-start, the Pan tool is still in the tool bar. So the question is: how do I configure the buttons in the main toolbar?
Thank you, Marc
Thanks to David Wire the procedure is the following:
ohif-cornerstone-extension is an npm package that's consumed by ohif/Viewers.
What I've typically done is:
- yarn install in ohif-cornerstone-extension
- Make my changes on ohif-cornerstone-extension
- yalc publish in ohif-cornerstone-extension
- yalc add @ohif/extension-cornerstone in the root ohif/Viewers dir
- run the viewer as normal