未验证 提交 2e28f747 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/arkui-ts/ts-basic-components-plugincomponent.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 bf525743
# PluginComponent
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> **NOTE**
> - This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
>
> - The APIs of this module are system APIs and cannot be called by third-party applications.
......@@ -40,7 +40,7 @@ Creates a **PluginComponent** to display the UI provided by an external applicat
## Events
| Name | Description |
| Name | Description |
| -------- | -------- |
| onComplete(callback: () =&gt; void) | Triggered when the component loading is complete. |
| onError(callback: (info: { errcode: number, msg: string }) =&gt; void) | Triggered when an error occurs during component loading.<br/>**errcode**: error code.<br/>**msg**: error information. |
......@@ -85,7 +85,7 @@ Used by the component provider to send the component and data to the component c
| data | KVObject | No | Component data value. |
| extraData | KVObject | No | Additional data value. |
- Example
- Example<br>
For details, see [APIs Called by Component Consumers](#apis-called-by-component-consumers).
......@@ -121,7 +121,7 @@ Used by the component consumer to request the component from the component provi
| key | number \| string \| boolean \| Array \| KVObject | **KVObject** uses **key** and **value** to store data. **key** is of the string type, and **value** can be of the number, string, boolean, array type or another **KVObject**. |
- Example
- Example<br>
For details, see [APIs Called by Component Consumers](#apis-called-by-component-consumers).
......@@ -150,7 +150,7 @@ Listens for events of the request type and returns the requested data, or listen
| data | KVObject | Component data. |
| extraData | KVObject | Additional data. |
- Example
- Example<br>
For details, see [APIs Called by Component Consumers](#apis-called-by-component-consumers).
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册