diff --git a/en/application-dev/reference/arkui-ts/ts-appendix-enums.md b/en/application-dev/reference/arkui-ts/ts-appendix-enums.md index dbc249b03b068a777ce4977e940f52860720d037..020c9d6eb2f6828712a97cfe64deb347d43cc8bf 100644 --- a/en/application-dev/reference/arkui-ts/ts-appendix-enums.md +++ b/en/application-dev/reference/arkui-ts/ts-appendix-enums.md @@ -54,8 +54,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## TouchType -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ------ | ------------------------------ | | Down | A finger is pressed. | @@ -65,8 +63,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## MouseButton -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ------- | ---------------- | | Left | Left button on the mouse. | @@ -78,8 +74,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## MouseAction -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ------- | -------------- | | Press | The mouse button is pressed.| @@ -109,7 +103,7 @@ Since API version 9, this API is supported in ArkTS widgets. ## AnimationStatus -Since API version 9, this API is supported in ArkTS widgets. +Since API version 10, this API is supported in ArkTS widgets. | Name | Description | | ------- | ------------------ | @@ -120,7 +114,7 @@ Since API version 9, this API is supported in ArkTS widgets. ## FillMode -Since API version 9, this API is supported in ArkTS widgets. +Since API version 10, this API is supported in ArkTS widgets. | Name | Description | | --------- | ------------------------------------------------------------ | @@ -142,8 +136,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## KeyType -Since API version 9, this API is supported in ArkTS widgets. - | Name| Description | | ---- | ---------- | | Down | The key is pressed.| @@ -151,8 +143,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## KeySource -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | -------- | -------------------- | | Unknown | Unknown input device. | @@ -172,8 +162,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## Week -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | -------- | ---------------------- | | Mon | Monday. | @@ -242,8 +230,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## RelateType -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ------ | ------------------------------- | | FILL | The current child component is scaled to fill the parent component. | @@ -307,12 +293,12 @@ Since API version 9, this API is supported in ArkTS widgets. | Name | Description | | -------- | ------------------------------------------------------------ | -| Auto | The default configuration of the flex container is used. | -| Start | The items in the flex container are aligned with the cross-start edge. | -| Center | The items in the flex container are centered along the cross axis. | -| End | The items in the flex container are aligned with the cross-end edge. | -| Stretch | The items in the flex container are stretched and padded along the cross axis. If the flex container has the **Wrap** attribute set to **FlexWrap.Wrap** or **FlexWrap.WrapReverse**, the items are stretched to the cross size of the widest element on the current row or column. In other cases, the items with no size set are stretched to the container size.| -| Baseline | The items in the flex container are aligned in such a manner that their text baselines are aligned along the cross axis. | +| Auto | The default configuration of the container (**\** or **\**) is used. | +| Start | The items in the container (**\** or **\**) are aligned with the cross-start edge. | +| Center | The items in the container (**\** or **\**) are centered along the cross axis. | +| End | The items in the container (**\** or **\**) are aligned with the cross-end edge. | +| Stretch | The items in the container (**\** or **\**) are stretched and padded along the cross axis. If the flex container has the **Wrap** attribute set to **FlexWrap.Wrap** or **FlexWrap.WrapReverse**, the items are stretched to the cross size of the widest element on the current row or column. In other cases, the items with no size set are stretched to the container size.| +| Baseline | The items in the container (**\** or **\**) are aligned in such a manner that their text baselines are aligned along the cross axis. | ## FlexDirection @@ -384,8 +370,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## SharedTransitionEffectType -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ----------- | ---------- | | Static | The element position remains unchanged on the target page, and transition opacity can be configured. Currently, this effect is only valid in redirecting to the target page.| @@ -458,8 +442,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## ResponseType8+ -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ---------- | -------------------------- | | LongPress | The menu is displayed when the component is long-pressed. | @@ -467,8 +449,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## HoverEffect8+ -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | --------- | ---------------------------- | | Auto | Default hover effect.| @@ -478,8 +458,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## Placement8+ -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ------------- | ------------------------------------------------------------ | | Left | The popup is on the left of the component, vertically aligned with the component on the left. | @@ -507,8 +485,6 @@ Since API version 9, this API is supported in ArkTS widgets. ## HitTestMode9+ -Since API version 9, this API is supported in ArkTS widgets. - | Name | Description | | ----------- | -------------------- | | Default | Both the node and its child node respond to the hit test of a touch event, but its sibling node is blocked from the hit test. | diff --git a/en/application-dev/reference/arkui-ts/ts-container-gridrow.md b/en/application-dev/reference/arkui-ts/ts-container-gridrow.md index 8f8f691d44dc7705919c9928515ba39cc40f199d..aa0a7d654527ca5e079636ec370d88139a51fc2e 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-gridrow.md +++ b/en/application-dev/reference/arkui-ts/ts-container-gridrow.md @@ -130,7 +130,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | Name | Type | Description | | ----------------------- | ----------------------------------- | ------------------------------------------- | -| alignItems10+ | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the **\** cross axis.
Default value: **ItemAlign.Start**
**NOTE**
The alignment mode of the **\** component can also be set using **alignSelf([ItemAlign](ts-appendix-enums.md#itemalign))**. If both of the preceding methods are used, the setting of **alignSelf(ItemAlign)** prevails.
Since API version 10, this API is supported in ArkTS widgets.| +| alignItems10+ | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the **\** cross axis.
Default value: **ItemAlign.Start**
**NOTE**
In **ItemAlign**, only the enumerated values **Start**, **Center**, **End**, and **Stretch** are supported.
The alignment mode of the **\** component can also be set using **alignSelf([ItemAlign](ts-appendix-enums.md#itemalign))**. If both of the preceding methods are used, the setting of **alignSelf(ItemAlign)** prevails.
Since API version 10, this API is supported in ArkTS widgets.| ## Events diff --git a/en/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md b/en/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md index 702fdef1d7c4acb9f3a2bc8eecd9325ec4367181..9e7bc6819ccaaade0636a5ca785f231ae139c0ad 100644 --- a/en/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md +++ b/en/application-dev/reference/arkui-ts/ts-universal-attributes-flex-layout.md @@ -3,7 +3,7 @@ > **NOTE** > - The APIs of this module are supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version. > -> - The flex layout is valid only when the parent component is a **\**, **\**, or **\** component. +> - The flex layout is valid only when the parent component is a **\**, **\**, **\**, or **\** component. ## Attributes @@ -13,7 +13,7 @@ | flexBasis | number \| string | Base size of the component in the main axis of the parent container.
Default value: **'auto'** (indicating that the base size of the component in the main axis is the original size of the component)
This attribute cannot be set in percentage.
Since API version 9, this API is supported in ArkTS widgets.| | flexGrow | number | Percentage of the parent container's remaining space that is allocated to the component.
Default value: **0**
Since API version 9, this API is supported in ArkTS widgets.| | flexShrink | number | Percentage of the parent container's shrink size that is allocated to the component.
When the parent container is **\** or **\**, the default value is **0**.
When the parent container is **\**, the default value is **1**.
Since API version 9, this API is supported in ArkTS widgets.| -| alignSelf | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the child components along the cross axis of the parent container. The setting overwrites the **alignItems** setting of the parent container.
Default value: **ItemAlign.Auto**
Since API version 9, this API is supported in ArkTS widgets.| +| alignSelf | [ItemAlign](ts-appendix-enums.md#itemalign) | Alignment mode of the child components along the cross axis of the parent container. The setting overwrites the **alignItems** setting of the parent container (**\**, **\**, **\**, or **\**).
**\** can have the **alignsSelf** attribute bound to change its own layout along the cross axis.
Default value: **ItemAlign.Auto**
Since API version 9, this API is supported in ArkTS widgets.| ## Example