Module floating_ui_core::middleware
source · Expand description
Middleware implementations for compute_position.
Structs§
- State passed to
SizeOptions::apply. - Provides data to position an inner element of the floating element so that it appears centered to the reference element.
- Data stored by
Arrowmiddleware. - Options for
Arrow. - 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. - Data stored by
AutoPlacementmiddleware. - An overflow stored in
AutoPlacementData. - Options for
AutoPlacementmiddleware. - Default
Limiter, which doesn’t limit shifting. - Optimizes the visibility of the floating element by flipping the
placementin order to keep it in view when the preferred placement(s) will overflow the clipping boundary. Alternative toAutoPlacement. - Data stored by
Flipmiddleware. - An overflow stored in
FlipData. - Options for
Flipmiddleware. - 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 by
Hidemiddleware. - Options for
Hidemiddleware. - Provides improved positioning for inline reference elements that can span over multiple lines, such as hyperlinks or range selections.
- Options for
Inline. - Axes configuration for
LimitShiftOffset. - Options for
LimitShiftlimiter. - Modifies the placement by translating the floating element along the specified axes.
- Data stored by
Offsetmiddleware. - Axes configuration for
OffsetOptions. - 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 by
Shiftmiddleware. - Options for
Shiftmiddleware. - 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 for
Sizemiddleware.
Enums§
- Fallback strategy used by
Flipmiddleware. - Fallback strategy used by
Hidemiddleware. - Offset configuration for
LimitShiftOptions. - Options for
Offsetmiddleware.
Constants§
- Name of the
Arrowmiddleware. - Name of the
AutoPlacementmiddleware. - Name of the
Flipmiddleware. - Name of the
Hidemiddleware. - Name of the
Inlinemiddleware. - Name of the
Offsetmiddleware. - Name of the
Shiftmiddleware. - Name of the
Sizemiddleware.
Traits§
- Limiter used by
Shiftmiddleware. Limits the shifting done in order to prevent detachment.