Module floating_ui_core::middleware 
source · Expand description
Middleware implementations for compute_position.
Structs§
- State passed toSizeOptions::apply.
- Provides data to position an inner element of the floating element so that it appears centered to the reference element.
- Data stored byArrowmiddleware.
- Options forArrow.
- 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 toFlip.
- Data stored byAutoPlacementmiddleware.
- An overflow stored inAutoPlacementData.
- Options forAutoPlacementmiddleware.
- DefaultLimiter, which doesn’t limit shifting.
- Optimizes the visibility of the floating element by flipping theplacementin order to keep it in view when the preferred placement(s) will overflow the clipping boundary. Alternative toAutoPlacement.
- Data stored byFlipmiddleware.
- An overflow stored inFlipData.
- Options forFlipmiddleware.
- 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.
- Data stored byHidemiddleware.
- Options forHidemiddleware.
- Provides improved positioning for inline reference elements that can span over multiple lines, such as hyperlinks or range selections.
- Options forInline.
- Axes configuration forLimitShiftOffset.
- Options forLimitShiftlimiter.
- Modifies the placement by translating the floating element along the specified axes.
- Data stored byOffsetmiddleware.
- Axes configuration forOffsetOptions.
- Optimizes the visibility of the floating element by shifting it in order to keep it in view when it will overflow the clipping boundary.
- Data stored byShiftmiddleware.
- Options forShiftmiddleware.
- 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.
- Options forSizemiddleware.
Enums§
- Fallback strategy used byFlipmiddleware.
- Fallback strategy used byHidemiddleware.
- Offset configuration forLimitShiftOptions.
- Options forOffsetmiddleware.
Constants§
- Name of theArrowmiddleware.
- Name of theAutoPlacementmiddleware.
- Name of theFlipmiddleware.
- Name of theHidemiddleware.
- Name of theInlinemiddleware.
- Name of theOffsetmiddleware.
- Name of theShiftmiddleware.
- Name of theSizemiddleware.
Traits§
- Limiter used byShiftmiddleware. Limits the shifting done in order to prevent detachment.