提交 a839b835 编写于 作者: W wusongqing

Added English js-apis-formprovider

Signed-off-by: Nwusongqing <wusongqing@huawei.com>
上级 4b9a1fd8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version. > The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
Provides APIs related to the form provider. Provides APIs related to the widget provider.
## Modules to Import ## Modules to Import
...@@ -19,7 +19,7 @@ None. ...@@ -19,7 +19,7 @@ None.
setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback&lt;void&gt;): void; setFormNextRefreshTime(formId: string, minute: number, callback: AsyncCallback&lt;void&gt;): void;
Sets the next refresh time for a form. This API uses an asynchronous callback to return the result. Sets the next refresh time for a widget. This API uses an asynchronous callback to return the result.
**System capability** **System capability**
...@@ -29,7 +29,7 @@ SystemCapability.Ability.Form ...@@ -29,7 +29,7 @@ SystemCapability.Ability.Form
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------- | | ------ | ------ | ---- | ------------------------------------- |
| formId | string | Yes | Form ID. | | formId | string | Yes | ID of a widget. |
| minute | number | Yes | Refresh interval, in minutes. The value must be greater than or equal to 5. | | minute | number | Yes | Refresh interval, in minutes. The value must be greater than or equal to 5. |
| callback | AsyncCallback&lt;void&gt; | Yes| Callback used to return the result.| | callback | AsyncCallback&lt;void&gt; | Yes| Callback used to return the result.|
...@@ -48,7 +48,7 @@ SystemCapability.Ability.Form ...@@ -48,7 +48,7 @@ SystemCapability.Ability.Form
setFormNextRefreshTime(formId: string, minute: number): Promise&lt;void&gt;; setFormNextRefreshTime(formId: string, minute: number): Promise&lt;void&gt;;
Sets the next refresh time for a form. This API uses a promise to return the result. Sets the next refresh time for a widget. This API uses a promise to return the result.
**System capability** **System capability**
...@@ -58,7 +58,7 @@ SystemCapability.Ability.Form ...@@ -58,7 +58,7 @@ SystemCapability.Ability.Form
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ------ | ---- | ------------------------------------- | | ------ | ------ | ---- | ------------------------------------- |
| formId | string | Yes | Form ID. | | formId | string | Yes | ID of a widget. |
| minute | number | Yes | Refresh interval, in minutes. The value must be greater than or equal to 5. | | minute | number | Yes | Refresh interval, in minutes. The value must be greater than or equal to 5. |
**Example** **Example**
...@@ -74,7 +74,7 @@ SystemCapability.Ability.Form ...@@ -74,7 +74,7 @@ SystemCapability.Ability.Form
updateForm(formId: string, formBindingData: FormBindingData, callback: AsyncCallback&lt;void&gt;): void; updateForm(formId: string, formBindingData: FormBindingData, callback: AsyncCallback&lt;void&gt;): void;
Updates a form. This API uses an asynchronous callback to return the result. Updates a widget. This API uses an asynchronous callback to return the result.
**System capability** **System capability**
...@@ -84,7 +84,7 @@ SystemCapability.Ability.Form ...@@ -84,7 +84,7 @@ SystemCapability.Ability.Form
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ---------------------------------------------------------------------- | ---- | ---------------- | | ------ | ---------------------------------------------------------------------- | ---- | ---------------- |
| formId | string | Yes | ID of the form to update.| | formId | string | Yes | ID of the widget to update.|
| formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | Data to be used for the update. | | formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | Data to be used for the update. |
| callback | AsyncCallback&lt;void&gt; | Yes| Callback used to return the result.| | callback | AsyncCallback&lt;void&gt; | Yes| Callback used to return the result.|
...@@ -105,7 +105,7 @@ SystemCapability.Ability.Form ...@@ -105,7 +105,7 @@ SystemCapability.Ability.Form
updateForm(formId: string, formBindingData: FormBindingData): Promise&lt;void&gt;; updateForm(formId: string, formBindingData: FormBindingData): Promise&lt;void&gt;;
Updates a form. This API uses a promise to return the result. Updates a widget. This API uses a promise to return the result.
**System capability** **System capability**
...@@ -115,7 +115,7 @@ SystemCapability.Ability.Form ...@@ -115,7 +115,7 @@ SystemCapability.Ability.Form
| Name| Type | Mandatory| Description | | Name| Type | Mandatory| Description |
| ------ | ---------------------------------------------------------------------- | ---- | ---------------- | | ------ | ---------------------------------------------------------------------- | ---- | ---------------- |
| formId | string | Yes | ID of the form to update.| | formId | string | Yes | ID of the widget to update.|
| formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | Data to be used for the update. | | formBindingData | [FormBindingData](js-apis-formbindingdata.md#formbindingdata) | Yes | Data to be used for the update. |
**Example** **Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册