Add toolbar layout to context.

This commit is contained in:
James A. Petts committed 2020-05-15 14:04:09 +02:00
1 parent c42aa37d7f
commit c23c1e8db6
5 files changed
+32 -14

No files matched your search

+3 -3
View File
@@ -12,8 +12,8 @@ export default function mode({ modeConfiguration }) {
routes: [
{
path: 'viewer',
init: ({ toolbarManager }) => {
toolbarManager.addButtons([
init: ({ toolBarManager }) => {
toolBarManager.addButtons([
{
id: 'StackScroll', // If id not given will use default in button definition.
namespace: 'org.ohif.cornerstone.toolbarModule.StackScroll',
@@ -25,7 +25,7 @@ export default function mode({ modeConfiguration }) {
]);
// Could import layout selector here from org.ohif.default (when it exists!)
toolbarManager.setToolBarLayout([
toolBarManager.setToolBarLayout([
// Primary
['StackScroll', { label: 'More', subMenu: ['Zoom'] }],
// Secondary