init

abstract fun init(placementElement: HTMLElement, popupElement: HTMLElement)(source)

Initialize this strategy with values it needs to calculate the final position and placement of a popup.

Parameters

placementElement

The element in the DOM that this popup should be placed relative to.

popupElement

The backing element for the popup itself. Its position at this point is not yet finalized, so you should usually just need to check its size values (i.e. width and height).