ComPDFKit Web SDK
    Preparing search index...

    Function setActiveResult

    • Sets the active search result (only changes its color; does not navigate). Without a result, picks the result at index from the existing ones.

      Parameters

      • Optionalresult: SearchResult

        The search result.

      • Optionalindex: number

        The index of an existing result.

      Returns void