Const
The items of the popup shown when an annotation is selected. Custom items use the types 'actionButton', 'statefulButton', 'toggleElementButton', 'toolButton' or 'divider'.
'actionButton'
'statefulButton'
'toggleElementButton'
'toolButton'
'divider'
instance.UI.annotationPopup.add([ { type: 'actionButton', dataElement: 'logAnnotationButton', label: 'Log', onClick: () => console.log(instance.Core.annotationManager.getSelectedAnnotations()), },]); Copy
instance.UI.annotationPopup.add([ { type: 'actionButton', dataElement: 'logAnnotationButton', label: 'Log', onClick: () => console.log(instance.Core.annotationManager.getSelectedAnnotations()), },]);
The items of the popup shown when an annotation is selected. Custom items use the types
'actionButton','statefulButton','toggleElementButton','toolButton'or'divider'.