Enum CollisionType
Defines the types of collision handling behavior for popup elements when they exceed viewport boundaries.
Namespace: Syncfusion.Blazor.Popups
Assembly: Syncfusion.Blazor.dll
Syntax
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum CollisionType
Remarks
The CollisionType enumeration specifies how the popup should behave when it would be positioned outside the visible area. This helps ensure popups remain visible and accessible to users regardless of the target element's position.
Examples
Usage of CollisionType in popup collision settings.
<SfPopup>
<PopupCollision X="CollisionType.Flip" Y="CollisionType.Fit" />
</SfPopup>
Fields
| Name | Description |
|---|---|
| Fit | Specifies that the popup should be adjusted to fit within the viewport boundaries. |
| Flip | Specifies that the popup should flip to the opposite side when collision is detected. |
| None | Specifies that no collision handling should be applied to the popup. |