未验证 提交 ac76fe37 编写于 作者: O openharmony_ci 提交者: Gitee

!5215 翻译完成 5072:优化ts-methods-menu.md

Merge pull request !5215 from ester.zhou/TR-5072
# Menu # Menu
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
> The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
## ContextMenu.close ## ContextMenu.close
|methods|description| |Method|Description|
|----|---| |----|---|
|close(): void|Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.| |close(): void|Closes the menu bound to this component through [bindContextMenu](./ts-universal-attributes-menu.md#Atrributes) on a page.|
- Example - Example
``` ```
@Entry // xxx.ets
@Entry
@Component @Component
struct Index { struct Index {
@Builder MenuBuilder(){ @Builder MenuBuilder(){
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,4 @@
.height('100%') .height('100%')
} }
} }
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册