提交 2f833485 编写于 作者: W wusongqing

updated docs

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 5f46a7ce
......@@ -325,3 +325,11 @@ You can use HML, CSS, and JSON to develop the UI page for a JavaScript-programme
Now you've got a widget shown below.
![fa-form-example](figures/fa-form-example.png)
## Development Example
The following sample is provided to help you better understand how to develop a widget on the FA model:
[eTSFormAbility](https://gitee.com/openharmony/app_samples/tree/master/ability/eTSFormAbility)
This **eTSFormAbility** sample provides a widget. Users can create, update, and delete widgets on the home screen of their phones or by using their own widget host. This sample also implements widget information persistence by using lightweight data storage.
......@@ -141,7 +141,7 @@ Obtains the bundle name of a **WantAgent** object. This API uses an asynchronous
| Name | Readable| Writable | Type | Mandatory| Description |
| -------- | --- | ---- | ----------------------- | ---- | --------------------------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose bundle name is to be obtained. |
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object. |
| callback | Yes | No | AsyncCallback\<string\> | Yes | Callback used to return the bundle name.|
**Example**
......@@ -213,7 +213,7 @@ Obtains the bundle name of a **WantAgent** object. This API uses a promise to re
| Name | Readable| Writable| Type | Mandatory| Description |
| ----- | --- | ---- | --------- | ---- | ------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose bundle name is to be obtained.|
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object.|
**Return value**
......@@ -282,7 +282,7 @@ Obtains the user ID of a **WantAgent** object. This API uses an asynchronous cal
| Name | Readable| Writable| Type | Mandatory| Description |
| -------- | --- | ---- | ----------------------- | ---- | ----------------------------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose user ID is to be obtained. |
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object. |
| callback | Yes | No | AsyncCallback\<number\> | Yes | Callback used to return the user ID.|
**Example**
......@@ -354,7 +354,7 @@ Obtains the user ID of a **WantAgent** object. This API uses a promise to return
| Name | Readable| Writable| Type | Mandatory| Description |
| ----- | --- | ---- | --------- | ---- | ------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose user ID is to be obtained.|
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object.|
**Return value**
......@@ -423,7 +423,7 @@ Obtains the want in a **WantAgent** object. This API uses an asynchronous callba
| Name | Readable| Writable| Type | Mandatory| Description |
| -------- | --- | ---- | --------------------- | ---- | ------------------------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose want is to be obtained. |
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object. |
| callback | Yes | No | AsyncCallback\<Want\> | Yes | Callback used to return the want.|
**Example**
......@@ -495,7 +495,7 @@ Obtains the want in a **WantAgent** object. This API uses a promise to return th
| Name | Readable| Writable| Type | Mandatory| Description |
| ----- | --- | ---- | --------- | ---- | ------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object whose want is to be obtained.|
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object.|
**Return value**
......@@ -564,7 +564,7 @@ Cancels a **WantAgent** object. This API uses an asynchronous callback to return
| Name | Readable| Writable| Type | Mandatory| Description |
| -------- | --- | ---- | --------------------- | ---- | --------------------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object to cancel. |
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object. |
| callback | Yes | No | AsyncCallback\<void\> | Yes | Callback used to return the result.|
**Example**
......@@ -636,7 +636,13 @@ Cancels a **WantAgent** object. This API uses a promise to return the result.
| Name | Readable| Writable| Type | Mandatory| Description |
| ----- | --- | ---- | --------- | ---- | ------------- |
| agent | Yes | No | WantAgent | Yes | **WantAgent** object to cancel.|
| agent | Yes | No | WantAgent | Yes | Target **WantAgent** object.|
**Return value**
| Type | Description |
| --------------- | ------------------------------- |
| Promise\<void\> | Promise used to return the result.|
**Example**
......@@ -777,7 +783,7 @@ Checks whether two **WantAgent** objects are equal. This API uses an asynchronou
| Name | Readable| Writable| Type | Mandatory| Description |
| ---------- | --- | ---- | ------------------------ | ---- | --------------------------------------- |
| agent | Yes | No | WantAgent | Yes | The first **WantAgent** object. |
| otherAgent | Yes | No | WantAgent | Yes | The second **WantAgent** object. |
| otherAgent | Yes | No | WantAgent | Yes | Target **WantAgent** object. |
| callback | Yes | No | AsyncCallback\<boolean\> | Yes | Callback used to return the result.|
**Example**
......@@ -852,7 +858,7 @@ Checks whether two **WantAgent** objects are equal. This API uses a promise to r
| Name | Readable| Writable| Type | Mandatory| Description |
| ---------- | --- | ---- | --------- | ---- | ------------- |
| agent | Yes | No | WantAgent | Yes | The first **WantAgent** object.|
| otherAgent | Yes | No | WantAgent | Yes | The second **WantAgent** object.|
| otherAgent | Yes | No | WantAgent | Yes | Target **WantAgent** object.|
**Return value**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册