Annotations Plugin for ThreePipe
    Preparing search index...

    Type Alias AnnotationCardRenderer

    AnnotationCardRenderer: (
        annotation: Annotation,
        context: { count: number; index: number; plugin: AnnotationsPlugin },
    ) => string | HTMLElement | null | undefined

    Renders the content of the card for an annotation: the title and the text area (AnnotationsPlugin.renderCardContent). A string is set as the HTML of the content as is: escape the values that come from a file or a user (escapeHtml, renderAnnotationText). An element is put in the content. undefined or null: the default content.

    Type Declaration

      • (
            annotation: Annotation,
            context: { count: number; index: number; plugin: AnnotationsPlugin },
        ): string | HTMLElement | null | undefined
      • Parameters

        Returns string | HTMLElement | null | undefined