提交 886eb52c 编写于 作者: E ester.zhou

update ts-methods-menu.md

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 b5db8417
# 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.
先完成此消息的编辑!
想要评论请 注册