Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SearchHintItem

Index

Constructors

Properties

Methods

Constructors

constructor

  • Initializes a new instance of the {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.search.SearchHintItem} class.

    class

    The text that comes back from a search hint provider might have embedded markup. We bind these highlights to an items source on an autocomplete box. We however want the selection from the autocomplete to not contain embedded markup. That is the purpose of this class - to provide two views of the hints - with and without markup.

    Parameters

    • text: string

      The text (with markup) to initialize

    • Optional options: object

      Optional parameter that sets the options for emphasizing text that might also contain unsafe HTML content.

      • Optional emphasisBeginTag?: string
      • Optional emphasisEndTag?: string

    Returns SearchHintItem

Properties

iconUri

iconUri: Observable<string>

The Observable icon URI associated with this search hint. Can be null if no icon is available.

observable
type

{String}

plainText

plainText: Observable<string>

Sanitized plain-text version of the unsafe HTML.

type

{String}

safeText

safeText: Observable<string>

Sanitized version of the unsafe HTML.

type

{String}

text

text: Observable<string>

Unsafe HTML that must be sanitized before being injected into the DOM.

type

{String}

Methods

sanitizeText

  • sanitizeText(value: string): string
  • Parameters

    • value: string

    Returns string

toString

  • toString(): string
  • Returns string