ComPDFKit Web SDK
    Preparing search index...

    Variable annotationPopupConst

    annotationPopup: PopupAPI

    The items of the popup shown when an annotation is selected. Custom items use the types 'actionButton', 'statefulButton', 'toggleElementButton', 'toolButton' or 'divider'.

    instance.UI.annotationPopup.add([
    {
    type: 'actionButton',
    dataElement: 'logAnnotationButton',
    label: 'Log',
    onClick: () => console.log(instance.Core.annotationManager.getSelectedAnnotations()),
    },
    ]);