From f642f8218360d29c6114b97868cf39d2033b016b Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Mon, 9 May 2022 18:25:45 +0800 Subject: [PATCH] update docs Signed-off-by: ester.zhou --- .../arkui-ts/ts-basic-components-button.md | 17 +++++++----- en/application-dev/ui/ui-js-overview.md | 3 ++- .../ui/ui-ts-basic-components-button.md | 24 ++++++++++------- en/application-dev/ui/ui-ts-overview.md | 27 +++++++++++++------ 4 files changed, 46 insertions(+), 25 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-basic-components-button.md b/en/application-dev/reference/arkui-ts/ts-basic-components-button.md index 33e0654aaa..68d1c22f59 100644 --- a/en/application-dev/reference/arkui-ts/ts-basic-components-button.md +++ b/en/application-dev/reference/arkui-ts/ts-basic-components-button.md @@ -2,6 +2,7 @@ > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. @@ -21,7 +22,8 @@ Supported ## APIs - Button(options?: {type?: ButtonType, stateEffect?: boolean}) - **Table1** options parameters + + **Table 1** options parameters | Name | Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | @@ -30,14 +32,15 @@ Supported - Button(label?: string, options?: { type?: ButtonType, stateEffect?: boolean }) + Creates a button component based on text content. In this case, the **<Button>** component cannot contain child components. - **Table2** value parameters - - | Name | Type | Mandatory | Default Value | Description | - | -------- | -------- | -------- | -------- | -------- | - | label | string | No | - | Button text. | - | options | Object | No | - | For details, see the **options** parameters. | + **Table 2** value parameters + +| Name | Type | Mandatory | Default Value | Description | +| -------- | -------- | -------- | -------- | -------- | +| label | string | No | - | Button text. | +| options | Object | No | - | For details, see the **options** parameters. | ## Attributes diff --git a/en/application-dev/ui/ui-js-overview.md b/en/application-dev/ui/ui-js-overview.md index 39612e9d87..e69b8f2553 100644 --- a/en/application-dev/ui/ui-js-overview.md +++ b/en/application-dev/ui/ui-js-overview.md @@ -1,8 +1,9 @@ # Overview - The web-like development paradigm uses the classical three-stage programming model, in which OpenHarmony Markup Language (HML) is used for building layouts, CSS for defining styles, and JavaScript for adding processing logic. UI components are associated with data through one-way data-binding. This means that when data changes, the UI automatically updates with the new data. This development paradigm has a low learning curve for frontend web developers, allowing them to quickly transform existing web applications into ArkUI applications. It could be helpful if you are developing small- and medium-sized applications with simple UIs. +For details about the components, see [Component Reference (JavaScript-based Web-like Development Paradigm)](../reference/arkui-js/js-components-common-attributes.md). + ## Overall Architecture diff --git a/en/application-dev/ui/ui-ts-basic-components-button.md b/en/application-dev/ui/ui-ts-basic-components-button.md index cbbcab6f93..0d65412ecb 100644 --- a/en/application-dev/ui/ui-ts-basic-components-button.md +++ b/en/application-dev/ui/ui-ts-basic-components-button.md @@ -1,15 +1,16 @@ # Button -The **\