Package-level declarations

Types

Link copied to clipboard
external interface ArrowOptions
Link copied to clipboard
Link copied to clipboard
external interface FlipOptions : DetectOverflowOptions
Link copied to clipboard
external interface HideOptions : DetectOverflowOptions
Link copied to clipboard
typealias HideStrategy = String
Link copied to clipboard
Link copied to clipboard
external interface InlineOptions
Link copied to clipboard
external interface LimitShiftOffset
Link copied to clipboard
external interface LimitShiftOptions
Link copied to clipboard
external interface OffsetOptions
Link copied to clipboard
external interface ShiftOptions : DetectOverflowOptions
Link copied to clipboard
external interface ShiftOptionsLimiter
Link copied to clipboard
external interface SizeOptions : DetectOverflowOptions
Link copied to clipboard
external interface SizeOptionsArgs : MiddlewareState

Functions

Link copied to clipboard
external fun arrow(options: ArrowOptions? = definedExternally): Middleware

Provides data to position an inner element of the floating element so that it appears centered to the reference element.

fun arrow(init: ArrowOptions.() -> Unit): Middleware
Link copied to clipboard
external fun autoPlacement(options: AutoPlacementOptions? = definedExternally): Middleware

Optimizes the visibility of the floating element by choosing the placement that has the most space available automatically, without needing to specify a preferred placement. Alternative to flip.

Link copied to clipboard
Link copied to clipboard
external fun flip(options: FlipOptions? = definedExternally): Middleware

Optimizes the visibility of the floating element by flipping the placement in order to keep it in view when the preferred placement(s) will overflow the clipping boundary. Alternative to autoPlacement.

fun flip(init: FlipOptions.() -> Unit): Middleware
Link copied to clipboard
external fun getPlacementList(alignment: Alignment?, autoAlignment: Boolean, allowedPlacements: Array<Placement>): Array<Placement>
Link copied to clipboard
Link copied to clipboard
external fun hide(options: HideOptions?): Middleware

Provides data to hide the floating element in applicable situations, such as when it is not in the same clipping context as the reference element.

fun hide(init: HideOptions.() -> Unit): Middleware
Link copied to clipboard
external fun inline(options: InlineOptions? = definedExternally): Middleware

Provides improved positioning for inline reference elements that can span over multiple lines, such as hyperlinks or range selections.

Link copied to clipboard
external fun limitShift(options: LimitShiftOptions? = definedExternally): ShiftOptionsLimiter

Built-in limiter that will stop shift() at a certain point.

Link copied to clipboard
external fun offset(options: OffsetOptions): Middleware

Modifies the placement by translating the floating element along the specified axes. A number (shorthand for mainAxis or distance), or an axes configuration object may be passed.

fun offset(mainAxis: Number): Middleware
Link copied to clipboard
external fun shift(options: ShiftOptions? = definedExternally): Middleware

Optimizes the visibility of the floating element by shifting it in order to keep it in view when it will overflow the clipping boundary.

fun shift(init: ShiftOptions.() -> Unit): Middleware
Link copied to clipboard
external fun size(options: SizeOptions? = definedExternally): Middleware

Provides data that allows you to change the size of the floating element — for instance, prevent it from overflowing the clipping boundary or match the width of the reference element.

fun size(init: SizeOptions.() -> Unit): Middleware