Lines Matching refs:menu
3 A context menu – a vertical list of items – can be bound to a component and displayed by long-press…
9 …**bindContextMenu** methods. To display a multi-level menu, use the [Menu](ts-basic-components-men…
11 > - The text in the context menu cannot be selected by long-pressing.
13 > - When the window size changes, the menu is automatically hidden.
15 …menu animation uses a spring curve. Due to the rebound and oscillation of the spring curve during …
17 …tMenu** is used without a preview specified, the menu will display a floating drag preview, and th…
19 > - Since API version 12, a 500 ms long-press on the menu reveals submenus.
21 > - Since API version 12, the pressed state of the menu follows finger movement.
23 > 1. This feature is only available in scenarios where the [Menu](ts-basic-components-menu.md) c…
32 Binds a menu to this component, which is displayed when the user clicks the component. A menu item …
42 …ent)> \| [CustomBuilder](ts-types.md#custombuilder8) | Yes | Array of menu item icons and text…
43 …tions10) | No | Parameters of the context menu. …
49 Binds a menu to this component, which is displayed when the user clicks the component. A menu item …
59 … | Yes | Whether to show the menu. The default value is **false**. The men…
60 …ent)> \| [CustomBuilder](ts-types.md#custombuilder8) | Yes | Array of menu item icons and text…
61 …tions10) | No | Parameters of the context menu. …
67 Binds a context menu to this component, which is displayed when the user long-presses or right-clic…
77 …Builder](ts-types.md#custombuilder8) | Yes | Builder of the custom menu content. |
78 | responseType | [ResponseType](ts-appendix-enums.md#responsetype8) | Yes | How the context menu i…
79 …textMenuOptions](#contextmenuoptions10) | No | Parameters of the context menu. |
85 Binds a context menu to the component, whose visibility is subject to the **isShown** settings.
87 If **isShown** is **true**, the menu is displayed. If **isShown** is set to **false**, the menu is …
89 The position of the context menu is subject to the **placement** settings, rather than where the co…
100 …r to show the context menu. The value **true** means to show the context menu, and **false** (defa…
101 … | [CustomBuilder](ts-types.md#custombuilder8) | Yes | Builder of the custom menu content.|
102 …textmenuoptions10) | No | Parameters of the context menu. …
110 …her to enable interactions with the menu item.<br>Default value: **true**, indicating that interac…
111 | action | () => void | Yes | Action triggered when a menu item i…
112 …versal-attributes-attribute-modifier.md) | No | Icon of a menu item. When this par…
121 …sup> | boolean | No | Whether to show the menu in a subwindow.<br>…
127 …menu, which should not cause the menu to extend beyond the screen.<br>Default value: **{x:0, y:0}*…
128 …menu. If the set position is insufficient for holding the component, it will be automatically adju…
129 …o | Whether to display an arrow. If the size and position of the context menu are insufficient fo…
130 …menu responds in hover mode. When its touched position is within the crease region of the foldable…
131 …menu. The offset settings take effect only when the value is valid, can be converted to a number g…
132 …r](ts-types.md#custombuilder8) | No | Preview displayed when the context menu is triggered by a l…
134 … | No | Callback triggered when the menu is displayed.<br>**…
135 … | No | Callback triggered when the menu is hidden.<br>**Ato…
136 … | No | Callback triggered when the menu is about to appear.…
137 … | No | Callback triggered when the menu is about to disappe…
140 …menu.<br>**NOTE**<br>During the exit animation of the menu, if there is a switch between landscape…
141 …menu.<br>Default value: **8vp** for 2-in-1 devices and **20vp** for other devices<br>**NOTE**<br> …
142 …menu layout for top, bottom, left, and right edges.<br>**NOTE**<br> Only vp, px, fp, lpx, and perc…
153 …GE | The preview is a screenshot of the component on which a long-press triggers the context menu.|
162 …menu.<br>**NOTE**<br>During the exit animation of the menu, if there is a switch between landscape…
181 Menu with textual menu items:
216 Menu with custom menu items:
250 Text('click for menu')
266 Context menu displayed upon long-press:
275 Text('Test menu item 1')
281 Text('Test menu item 2')
291 Text('LongPress for menu')
304 Directive menu displayed upon right-click:
347 Context menu displayed upon long-pressing (with preview of component screenshot):
391 Context menu displayed upon long-pressing (with preview of custom content):
443 Context menu displayed upon setting isShown (with preview of custom content):
501 This example customizes the display and exit animation effects of the menu and preview through the …
510 Text('Test menu item 1')
516 Text('Test menu item 2')
569 This example demonstrates a regular menu (using symbol-type icons).