Skip to content

Commit 91fd730

Browse files
ContextMenu: Update target & showEvent topics (#7655) (#7666)
1 parent 9472289 commit 91fd730

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

api-reference/10 UI Components/dxContextMenu/1 Configuration/showEvent/showEvent.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ default: 'dxcontextmenu'
55
---
66
---
77
##### shortDescription
8-
Specifies properties for displaying the UI component.
8+
Specifies properties used to display the UI component.
99

1010
---
11-
If you assign only a string that specifies event names on which the UI component is shown, the UI component will not apply any delay.
11+
If you assign only a string that specifies event names on which the UI component is shown, the UI component will not apply a delay.
1212

1313
<!--JavaScript-->
14-
showEvent: "mouseenter"
14+
showEvent: "mouseenter"
15+
16+
Assign `""` (an empty string) to **showEvent** if you want to display the component only through code (for instance, by calling the [show()](/Documentation/ApiReference/UI_Components/dxContextMenu/Methods/#show) method).

api-reference/10 UI Components/dxContextMenu/1 Configuration/target.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ The target element associated with the context menu.
1010
---
1111
#include uiwidgets-ref-target
1212

13-
To align the {WidgetName} against this element, use the [position](/api-reference/10%20UI%20Components/dxContextMenu/1%20Configuration/position.md '{basewidgetpath}/Configuration/#position') property.
13+
To align the {WidgetName} against this element, use the [position](/api-reference/10%20UI%20Components/dxContextMenu/1%20Configuration/position.md '{basewidgetpath}/Configuration/#position') property.
14+
15+
When **target** is `undefined` and [showEvent]({basewidgetpath}/Configuration/showEvent) is related to mouse/touch inputs (the default [dxcontextmenu](Documentation/ApiReference/UI_Components/UI_Events/#dxcontextmenu) event), the component is displayed at the mouse cursor/touch location. If the [showEvent]({basewidgetpath}/Configuration/showEvent) value is not related to mouse/touch events, the component is displayed in the top-left corner of the page.

0 commit comments

Comments
 (0)