PopupPlacementStrategy

A contract to control how a popup should be placed relative to some placement element.

See calculate, which must be implemented by any implementing classes.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
class PositionAndPlacement(val position: PopupPlacementStrategy.Position, val placement: PopupPlacement? = null)

Functions

Link copied to clipboard

Returns the absolute position and placement that a popup should be placed at.

Link copied to clipboard
abstract fun init(placementElement: HTMLElement, popupElement: HTMLElement)

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

Link copied to clipboard
abstract fun reset()

Clear any state that this strategy may have been holding onto, called when the popup closes.