You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: components/popover/overview.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ The Blazor Popover provides parameters to configure the component. Also check th
69
69
|`AnimationDuration`|`int`| The duration of the animation in milliseconds. [Read more about Popover animations...]({%slug popover-animation%}) |
70
70
|`AnimationType`|`AnimationType` enum <br /> (`SlideDown`) | The type of animation when the component displays and hides. [Read more about Popover animations...]({%slug popover-animation%}) |
71
71
|`Collision`|`PopoverCollision` enum <br /> (`Fit`) | The behavior of the Popover when it doesn't fit in the viewport. [Read more about Popover collision...]({%slug popover-position-collision%}) |
72
-
|`Offset`|`double `| The space between the Popover and its anchorin pixels. |
72
+
|`Offset`|`double `| The [space between the Popover and its anchor]({%slug popover-position-collision%}#offset) in pixels. The component ignores its callout when applying this setting. |
73
73
|`Position`|`PopoverPosition ` enum <br /> (`Top`) | The position relative to the target element at which the Popover will be shown. [Read more about Popover position...]({%slug popover-position-collision%}) |
74
74
|`ShowCallout`|`bool` <br /> (`true`) | Defines if the callout is rendered. |
75
75
|`ShowOn`|`PopOverShowOn?` enum <br /> (`null`) | The browser event that will display the Popover (`MouseEnter` or `Click`) without the need to [use component methods](#popover-reference-and-methods). When you set the `ShowOn` parameter to `Click`, the Popover will hide when the user clicks outside the component. If the parameter value is `MouseEnter`, the Popover will hide when the mouse pointer leaves. |
Copy file name to clipboardexpand all lines: components/popover/position-collision.md
+20-8
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ position: 10
12
12
13
13
This article outlines the available settings which enable you to control the position of the Popover based on its anchor and dictate how the component responds to insufficient screen space.
14
14
15
+
The [example](#example) below lets you customize the Popover `Position`, `Offset`, and `Collision` parameters and see how they affect the component.
16
+
15
17
## Position
16
18
17
19
To customize how the popover aligns with its anchor element, use the `Position` parameter and set its value to a member of the `PopoverPosition` enum:
@@ -21,7 +23,9 @@ To customize how the popover aligns with its anchor element, use the `Position`
21
23
*`Left`
22
24
*`Right`
23
25
24
-
The [example](#example) below lets you customize the available `Position` parameters and see how they affect the Popover component.
26
+
## Offset
27
+
28
+
The `Offset` moves the Popover further away from its anchor in the direction that is consistent with the `Position` parameter value. For example, the Popover will move further down when the `Position` is set to `Bottom`.
25
29
26
30
## Collision
27
31
@@ -34,13 +38,21 @@ To define how the Popover reacts to insufficient screen space, set the `Collisio
34
38
35
39
The following example lets you experiment with the available settings that control the position and collision behavior of the Popover. It starts with the default component behavior.
0 commit comments