Files
ohif-viewer/platform/viewer/src/appExtensions/MeasurementsPanel/index.js
T

31 lines
732 B
JavaScript
Raw Normal View History

2019-07-04 14:09:13 -04:00
import ConnectedMeasurementTable from './ConnectedMeasurementTable.js';
import init from './init.js';
2019-07-04 14:09:13 -04:00
export default {
/**
* Only required property. Should be a unique value across all extensions.
*/
2019-07-04 14:09:13 -04:00
id: 'measurements-table',
preRegistration({ servicesManager, configuration = {} }) {
init({ servicesManager, configuration });
},
2019-11-14 19:29:40 -03:00
getPanelModule({ servicesManager }) {
2019-07-04 14:09:13 -04:00
return {
menuOptions: [
{
icon: 'list',
label: 'Measurements',
target: 'measurement-panel',
},
],
components: [
{
id: 'measurement-panel',
component: ConnectedMeasurementTable,
},
],
defaultContext: ['VIEWER'],
};
},
};