Home > widget-integration > PositionService > updatePosition

PositionService.updatePosition() method

Full position update flow: calculate, apply, and setup scroll handler.

Signature:

updatePosition(input: HTMLInputElement, container: HTMLElement, searchSettings: SearchSettings$1): () => void;

Parameters

Parameter

Type

Description

input

HTMLInputElement

The search input element

container

HTMLElement

The dropdown container element

searchSettings

SearchSettings$1

Search settings

Returns:

() => void

Cleanup function for scroll handler