/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | ui-js-components-menu.md | 1 # menu开发指导 4 提供菜单组件,作为临时性弹出窗口,用于展示用户可执行的操作,具体用法请参考[menu](../reference/apis-arkui/arkui-js/js-components-basic-me… 7 ## 创建menu组件 20 </menu> 51 为menu组件设置样式,例如字体颜色、大小、字符间距等。 62 </menu> 87 menu{ 114 </menu> 139 menu{ 190 </menu> [all …]
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | multimodal-menu.md | 3 A menu is a temporary pop-up window used to display operations that users can perform. 11 - Use a menu to show more options and information when users touch **More** on the toolbar or title… 13 - Do not include menu items irrelevant to the current content. 15 - Put the most frequently used menu items on the top of the menu. 19 - Make a menu disappear when users touch the back button or a blank area, or select a menu item. 24 - General menu 26 - Long-press menu 31 This type of menu is displayed when users touch the **More** button on the toolbar or title bar. 38 This type of menu is displayed when users long press a certain object. 45 …e development guide related to the menu, see [Menu](../../application-dev/reference/arkui-ts/ts-ba…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-menu.md | 1 # menu chapter 7 The **\<menu>** component provides menus as temporary pop-up windows to display operations that can… 25 …menu is attached. When the target element is clicked, the menu is automatically displayed. The men… 26 … menu. Available values are as follows:<br>- **click**: The pop-up menu is triggered by clicking t… 27 | title | string | - | No | Title of the menu. | 40 | text-color | <color> | - | No | Font color of the menu. … 41 | font-size | <length> | 30px | No | Font size of the menu. … 65 …menu. **x** and **y** specify the position of the displayed menu. **x** indicates the x coordinate… 72 <text onclick="onTextClick" class="title-text">Show popup menu.</text> 73 <menu id="apiMenu" onselected="onMenuSelected"> [all …]
|
/ohos5.0/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/driver_adapter/src/ |
H A D | v4l2_control.cpp | 232 menu.index++) { in V4L2EnumExtControl() 233 menu.id = qCtrl.id; in V4L2EnumExtControl() 238 CAMERA_LOGD("\t V4L2EnumExtControls %{public}d : %{public}s\n", menu.index, menu.name); in V4L2EnumExtControl() 240 menuTemp.id = menu.id; in V4L2EnumExtControl() 297 menu.index++) { in V4L2GetControl() 298 menu.id = queryCtrl.id; in V4L2GetControl() 303 CAMERA_LOGD("\t %d : %s\n", menu.index, menu.name); in V4L2GetControl() 304 mTemp.index = menu.index; in V4L2GetControl() 305 mTemp.id = menu.id; in V4L2GetControl() 306 mTemp.value = menu.value; in V4L2GetControl() [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.5/ |
H A D | changelogs-menu.md | 14 - Changes how the context menu interacts with the user. 15 …n attribute to allow a menu to display across applications (if this attribute is not specified, th… 21 - Allows the menu to display across applications. 23 - Affects the avoidance logic of the context menu. 41 …- If there is no enough room for the context menu below the selected element, the context menu is … 43 - The submenu, if any, of a context menu, is displayed close to the edge. 45 - The menu can only be displayed in the application window. 51 …menu below the selected element, the context menu is moved upward vertically until it is completel… 64 /* Example of displaying the menu in a child window 68 * false: The menu is displayed inside the application window. [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | arkts-popup-and-menu-components-menu.md | 2 …menu APIs to display a context menu, a vertical list of items displayed by long pressing, clicking… 4 A context menu displayed using [bindContextMenu](../reference/apis-arkui/arkui-ts/ts-universal-attr… 12 | aboutToAppear | () => void | Callback triggered when the menu is about to appear.| 13 | onAppear | () => void | Callback triggered when the menu is displayed.| 14 | aboutToDisappear | () => void | Callback triggered when the menu is about to disappear.| 15 | onDisappear | () => void | Callback triggered when the menu is hidden.| 21 …PI to implement a menu. **bindMenu** responds to the click event of the bound component. When the … 39 …/quick-start/arkts-builder.md) to customize menu content and use the **bindMenu** API to bind the … 76 … set, it indicates that a submenu is bound to a menu item. When the user hovers the cursor over th… 122 … **bindContextMenu** API to customize the menu content and menu popup mode: right-click or long pr… [all …]
|
H A D | ui-js-components-menu.md | 1 # <menu> Development 4 …menu> component serves as a temporary pop-up window to display operations that users can perfor… 7 ## Creating a <menu> Component 16 <menu target="textId" type="click" title="title"> 20 </menu> 62 </menu> 87 menu{ 114 </menu> 139 menu{ 190 </menu> [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-menuitem.md | 3 The **MenuItem** component represents an item in a menu. 52 Sets whether the menu item is selected. 70 Sets whether to display the selected icon when the menu item is selected. 85 Sets the font style of the menu item content. 95 | value | [Font](ts-types.md#font) | Yes | Font style of the menu item content.| 101 Sets the font color of the menu item content. 117 Sets the font style of the menu item label. 127 | value | [Font](ts-types.md#font) | Yes | Font style of the menu item label.| 133 Sets the font color of the menu item label. 151 Triggered when the selection status of the menu item is changed manually. [all …]
|
H A D | ts-basic-components-menu.md | 19 Creates a fixed container for a menu. This API does not have any parameters. 23 > Rules for calculating the width of menus and menu items: 45 Sets the size of all text within the menu. 61 Sets the size of all text within the menu. 76 Sets the font color of all text within the menu. 92 Sets the radius of the menu border corners. 142 Sets the submenu expanding mode of the menu. 224 Text('click to show menu') 236  240 This example demonstrates a regular menu (using symbol-type icons). [all …]
|
H A D | ts-universal-attributes-menu.md | 87 If **isShown** is **true**, the menu is displayed. If **isShown** is set to **false**, the menu is … 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: 510 Text('Test menu item 1') [all …]
|
H A D | ohos-arkui-advanced-SelectionMenu.md | 26 …menu on selection. When the input parameter is empty, the sizes of the menu and its content area a… 38 | options | [SelectionMenuOptions](#selectionmenuoptions) | Yes| Options of the context menu on sel… 42 Defines the options of the context menu on selection. 50 …menu.<br>If **editorMenuOptions** is not set, the edit menu is not displayed.<br>When both **actio… 51 …menu options.<br>If this parameter is left empty, the expanded drop-down menu is not displayed.<br… 53 …he place of the preset copy menu option.<br>It is effective only when the **controller** parameter… 55 …the place of the preset cut menu option.<br>It is effective only when the **controller** parameter… 61 Describes the edit menu options. 71 | action | () => void | No| Action triggered when the menu option is clicked.| 76 Describes the expanded drop-down menu options. [all …]
|
H A D | ts-basic-components-menuitemgroup.md | 3 The **MenuItemGroup** component represents a group of menu items. 25 | value | [MenuItemGroupOptions](#menuitemgroupoptions) | No | Header and footer of the menu item… 35 …resourcestr) \| [CustomBuilder](ts-types.md#custombuilder8) | No | Header of the menu item group.| 36 …resourcestr) \| [CustomBuilder](ts-types.md#custombuilder8) | No | Footer of the menu item group.| 40 For details, see [Example in Menu](ts-basic-components-menu.md#example).
|
H A D | ts-methods-menu.md | 3 The menu bound to a component through [bindContextMenu](./ts-universal-attributes-menu.md#bindconte… 15 Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md… 57 // Close the menu when the component is dragged.
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkMenu.ts | 21 getUINativeModule().menu.resetMenuFontColor(node); 23 getUINativeModule().menu.setMenuFontColor(node, this.value); 40 getUINativeModule().menu.resetFont(node); 42 getUINativeModule().menu.setFont(node, 63 getUINativeModule().menu.resetRadius(node); 68 getUINativeModule().menu.setRadius(node, 99 getUINativeModule().menu.resetWidth(node); 101 getUINativeModule().menu.setWidth(node, this.value); 117 getUINativeModule().menu.resetMenuItemDivider(node); 144 getUINativeModule().menu.resetMenuItemGroupDivider(node); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/wrapper/ |
H A D | menu_wrapper_pattern.h | 86 auto menu = GetMenu(); in IsContextMenu() local 87 CHECK_NULL_RETURN(menu, false); in IsContextMenu() 88 auto menuPattern = menu->GetPattern<MenuPattern>(); in IsContextMenu() 95 auto menu = GetMenu(); in GetPreviewMode() local 96 CHECK_NULL_RETURN(menu, MenuPreviewMode::NONE); in GetPreviewMode() 97 auto menuPattern = menu->GetPattern<MenuPattern>(); in GetPreviewMode() 104 auto menu = GetMenu(); in IsSelectMenu() local 105 CHECK_NULL_RETURN(menu, false); in IsSelectMenu() 120 CHECK_NULL_RETURN(menu, nullptr); in GetMenu() 121 return menu; in GetMenu() [all …]
|
/ohos5.0/build/tools/component_tools/ |
H A D | kconfig | 48 menu "ace" 64 menu "ai" 66 menu "account" 170 menu "useriam" 311 menu "utils" 378 menu "aafwk" 505 menu "hdf" 893 menu "usb" 922 menu "xts" 961 menu "ark" [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-option.md | 9 当作为<[menu](js-components-basic-menu.md)>的子组件时用来展示弹出菜单的具体项目。 29 | value | string | - | 是 | 选择项的值,作为select、menu父组件的selected事件中的返回值。<br/>option选项的UI展示值需要放在… 59 详见[menu示例](js-components-basic-menu.md#示例)。
|
H A D | js-components-basic-menu.md | 1 # menu chapter 24 | target | string | - | 否 | 目标元素选择器。当使用目标元素选择器后,点击目标元素会自动弹出menu菜单。弹出菜单位置优先为目标元素右下角,当右边可视空间不足… 63 | show | { x:x, y:y } | 显示menu菜单。(x, y)指定菜单弹窗位置。其中x表示距离可见区域左边沿的 X&nb… 70 <text onclick="onTextClick" class="title-text">Show popup menu.</text> 71 <menu id="apiMenu" onselected="onMenuSelected"> 75 </menu>
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/ |
H A D | navigation_bar_element.cpp | 52 auto menu = navigationBar->GetMenu(); in BindMoreButtonClickEvent() local 53 if (!menu) { in BindMoreButtonClickEvent() 57 auto showMenuFunc = menu->GetTargetCallback(); in BindMoreButtonClickEvent() 84 auto menu = navigationBar->GetMenu(); in BindClickEventToOptions() local 85 if (!menu) { in BindClickEventToOptions() 90 const auto& menuSuccessEvent = menu->GetOnSuccess(); in BindClickEventToOptions()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | navdestination_node_base.h | 40 void SetMenu(const RefPtr<UINode>& menu) in SetMenu() argument 42 menu_ = menu; in SetMenu() 50 void SetToolbarContainer(const RefPtr<UINode>& menu) in SetToolbarContainer() argument 52 toolbarMenu_ = menu; in SetToolbarContainer() 75 void SetLandscapeMenu(const RefPtr<UINode>& menu) in SetLandscapeMenu() argument 77 landscapeMenu_ = menu; in SetLandscapeMenu()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/ |
H A D | menuwrapper_test_ng.cpp | 700 ASSERT_NE(menu, nullptr); 706 menu->MountToParent(mockScroll); 748 ASSERT_NE(menu, nullptr); 754 menu->MountToParent(mockScroll); 759 textNode->MountToParent(menu); 798 ASSERT_NE(menu, nullptr); 812 menu->MountToParent(mainMenu); 848 ASSERT_NE(menu, nullptr); 850 menu->MountToParent(wrapperNode); 932 ASSERT_NE(menu, nullptr); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_pattern.cpp | 127 CHECK_NULL_VOID(menu); in OnModifyDone() 149 CHECK_NULL_VOID(menu); in SetItemSelected() 182 CHECK_NULL_VOID(menu); in ShowSelectMenu() 970 CHECK_NULL_VOID(menu); in ToJsonValue() 1018 CHECK_NULL_VOID(menu); in ToJsonMenuBackgroundStyle() 1168 CHECK_NULL_VOID(menu); in SetMenuAlign() 1306 CHECK_NULL_VOID(menu); in SetOptionWidth() 1342 CHECK_NULL_VOID(menu); in SetHasOptionWidth() 1362 CHECK_NULL_VOID(menu); in SetOptionHeight() 1374 CHECK_NULL_VOID(menu); in SetMenuBackgroundColor() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_navigation_bar.cpp | 62 auto menu = AceType::DynamicCast<MenuComponent>(child->GetSpecializedComponent()); in OnChildNodeRemoved() local 63 if (menu) { in OnChildNodeRemoved() 64 navigationBarData_->menu = nullptr; in OnChildNodeRemoved() 86 auto menu = AceType::DynamicCast<MenuComponent>(child->GetSpecializedComponent()); in OnChildNodeAdded() local 87 if (menu) { in OnChildNodeAdded() 88 navigationBarData_->menu = menu; in OnChildNodeAdded()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/ |
H A D | BUILD.gn | 217 "menu/menu_accessibility_property.cpp", 220 "menu/menu_item/menu_item_model_ng.cpp", 222 "menu/menu_item/menu_item_pattern.cpp", 228 "menu/menu_layout_algorithm.cpp", 229 "menu/menu_layout_property.cpp", 230 "menu/menu_model_ng.cpp", 231 "menu/menu_paint_method.cpp", 232 "menu/menu_pattern.cpp", 233 "menu/menu_view.cpp", 234 "menu/multi_menu_layout_algorithm.cpp", [all …]
|
/ohos5.0/base/update/updater/ |
H A D | updater_ux_guide.md | 100 | pages | ["menu.json","confirm.json","upd.json"] | 所有页面的列表 | 使用默认 | 102 | entry | menu:normal | 主菜单页面 | 使用默认 | 109 ### 初始化menu.json 115 | id | menu | 主菜单页面,**值必须与上一小节中pages字段值保持一致** | 使用默认 | 123 "id": "menu", 133 - rk3568.json中entry字段配置为menu:normal,修改subpages中id为normal的背景色配置bgColor字段,改为绿色不透明: 135 "id": "menu", 374 - 主菜单页面menu.json<br> 376 
|