pdfrx_web
    Preparing search index...

    Type Alias ContextMenuBuilder

    ContextMenuBuilder: (
        context: ContextMenuContext,
    ) => HTMLElement | null | undefined

    Builds the context menu shown on right-click / long-press (see PdfrxViewerOptions.contextMenuBuilder). Return a positioned-by-the-viewer element, or null/undefined to show no menu. Build items that call PdfrxViewer.copySelection / PdfrxViewer.selectAll etc. and then ContextMenuContext.close. Supplying this replaces the built-in menu entirely — the mechanism through which an app localizes or customizes it.

    Type Declaration