Create new ToolbarButton type for Layout Selector; wire up custom UI; prep for viewportGridService usage

This commit is contained in:
dannyrb committed 2020-06-15 00:51:36 -04:00
1 parent 83eb24337c
commit 9146a9ee32
18 files changed
+166 -162

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ export default function mode({ modeConfiguration }) {
'Wwwc',
'Pan',
'Capture',
// 'Layout', // toggle --> command to open layout dialog? needs to know when it should be off? (promise?)
'Layout',
'Divider',
['Zoom', 'Wwwc'],
]);
+8 -2
View File
@@ -1,3 +1,6 @@
// TODO: torn, can either bake this here; or have to create a whole new button type
// Only ways that you can pass in a custom React component for render :l
export default [
// Divider
{
@@ -60,8 +63,11 @@ export default [
type: 'primary',
},
},
// Layout
// Expanded/Nested?
{
id: 'Layout',
type: 'ohif.layoutSelector',
},
// ~~ Primary: NESTED
// ~~ Secondary
{
id: 'Annotate',