I want to open the left and right sidepanels by clicking on respective buttons on the the toolbar instead of the default way. How do I set this up?
- I tried to add a test configuration to
modes\longitudinal\src\toolbarButtons.js
to add the toggle button but how do add the command? - Currently using v3
Config in toolbarButtons.js
{
id: 'Studies',
type: 'ohif.action',
props: {
type: 'toggle',
icon: 'icon-studies',
label: 'Studies',
commands: [
{
commandName: 'toggleStudies',
commandOptions: {},
context: 'DEFAULT',
},
],
},
},
This config does not render the button either.