未验证 提交 a577f3e6 编写于 作者: E ester.zhou 提交者: Gitee

update en/application-dev/reference/arkui-ts/ts-container-panel.md.

Signed-off-by: Nester.zhou <ester.zhou@huawei.com>
上级 1fc7f271
......@@ -59,7 +59,7 @@ Panel(value:{show:boolean})
| Name | Description |
| -------- | -------- |
| onChange(callback: (width: number, height: number, mode: PanelMode) =&gt; void) | Triggered when the status of the panel changes. The returned height value is the height of the content area. When the value of **dragbar** is **true**, the height of the panel is the dragbar height plus the height of the content area. |
| onChange(callback: (width: number, height: number, mode: PanelMode) =&gt; void) | Triggered when the status of the panel changes. The returned height value is the height of the content area. When the value of **dragbar** is **true**, the height of the panel is the drag bar height plus the height of the content area. |
## Example
......@@ -87,8 +87,8 @@ struct PanelExample {
}
}
.type(PanelType.Foldable).mode(PanelMode.Half)
.dragBar(true) // The dragbar is enabled by default.
.halfHeight(500) // Half of the height by default
.dragBar(true) // The drag bar is enabled by default.
.halfHeight(500) // The default value is half of the screen height.
.onChange((width: number, height: number, mode: PanelMode) => {
console.info(`width:${width},height:${height},mode:${mode}`)
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册