Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a search box with room search suggestions.

see

RoomSearchBoxProps

Hierarchy

  • RoomSearchBox

Implements

Index

Constructors

constructor

Properties

Private Optional container

container: HTMLElement

Private Optional onChooseResult

onChooseResult: (result: GeocoderSuggestion) => void

Type declaration

Private Optional resultClearer

resultClearer: ResultClearer

Private Optional resultContainer

resultContainer: HTMLElement

Private Optional searchBox

searchBox: HTMLElement

Private Optional searchBoxWriter

searchBoxWriter: TextBoxWriter

Private Optional topResult

Static Private Readonly DEFAULT_MAX_RESULTS

DEFAULT_MAX_RESULTS: number = 5

Default maximum number of search suggestions to display

Methods

Private chooseResult

  • Parameters

    Returns void

Private clearResults

  • clearResults(): void
  • Returns void

Private createResultElement

  • Parameters

    Returns HTMLElement

handleInput

  • handleInput(query: string, maxResults: number, resultIcon: HTMLElement, geocoder: Geocoder): Promise<void>
  • Parameters

    • query: string
    • maxResults: number
    • resultIcon: HTMLElement
    • geocoder: Geocoder

    Returns Promise<void>

handleKeypressInInput

  • handleKeypressInInput(e: KeyboardEvent): void
  • Parameters

    • e: KeyboardEvent

    Returns void

render

  • Parameters

    Returns HTMLElement

Private updateWithResults

  • updateWithResults(query: string, resultIcon: HTMLElement, results: GeocoderSuggestion[]): void
  • Parameters

    Returns void

Generated using TypeDoc