ComPDFKit Web SDK
    Preparing search index...

    Variable textPopupConst

    textPopup: PopupAPI

    The items of the popup shown when text is selected.

    instance.UI.textPopup.add({
    type: 'actionButton',
    dataElement: 'searchSelectionButton',
    label: 'Search',
    onClick: () => {
    const text = instance.Core.documentViewer.getSelectedText();
    instance.UI.searchTextFull(text);
    },
    }, 'copyTextButton');