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

update ts-methods-menu.md

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 b5db8417
# Menu
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The APIs of this module are supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
> **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.
## 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.|
- Example
```
@Entry
```
// xxx.ets
@Entry
@Component
struct Index {
@Builder MenuBuilder(){
......@@ -35,4 +35,4 @@
.height('100%')
}
}
```
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部