pdfrx_web
    Preparing search index...

    Interface DefaultContextMenuOptions

    interface DefaultContextMenuOptions {
        canAddTextMarkup?: () => boolean;
        onAddTextMarkup?: (
            subtype: TextMarkupAnnotationSubtype,
            color: string,
        ) => void;
        textMarkupTypes?: readonly TextMarkupAnnotationSubtype[];
    }
    Index
    canAddTextMarkup?: () => boolean

    Additional check for enabling the markup item, e.g. a host permission.

    onAddTextMarkup?: (subtype: TextMarkupAnnotationSubtype, color: string) => void

    Replaces the native PDF mutation. The host persists the markup for the current text selection itself, e.g. as an application annotation.

    textMarkupTypes?: readonly TextMarkupAnnotationSubtype[]

    Markup subtypes offered in the palette, in the default order. All by default.