diff --git a/en/application-dev/quick-start/arkts-builderparam.md b/en/application-dev/quick-start/arkts-builderparam.md index 66647f094bfa5e5e090dba5cb5b1f0af27850d5f..947c33b139cc9a529ffbe345ab0d3cbd01b73172 100644 --- a/en/application-dev/quick-start/arkts-builderparam.md +++ b/en/application-dev/quick-start/arkts-builderparam.md @@ -152,7 +152,7 @@ struct Parent { ``` -### Example of Component Initialization Through Trailing Closure +### Component Initialization Through Trailing Closure In a custom component, the \@BuilderParam decorated attribute can be initialized using a trailing closure. During initialization, the component name is followed by a pair of braces ({}) to form a trailing closure. diff --git a/en/application-dev/reference/arkui-ts/ts-container-badge.md b/en/application-dev/reference/arkui-ts/ts-container-badge.md index 78c8f0060a334c71b476f36fedac5d194213fb8a..649893ec00d9433b701770a2cd5bebb23cf9e5c0 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-badge.md +++ b/en/application-dev/reference/arkui-ts/ts-container-badge.md @@ -29,7 +29,7 @@ Since API version 9, this API is supported in ArkTS widgets. | Name| Type| Mandatory| Description| | -------- | -------- | -------- | -------- | | count | number | Yes| Number of notifications.
**NOTE**
If the value is less than or equal to 0, no badge is displayed.
Value range: [-2147483648, 2147483647]
If the value is not an integer, it is rounded off to the nearest integer. For example, 5.5 is rounded off to 5.| -| position | [BadgePosition](#badgeposition) | No| Position to display the badge relative to the parent component.
Default value: **BadgePosition.RightTop**| +| position | [BadgePosition](#badgeposition)\|[Position10+](ts-types.md#position8) | No| Position to display the badge relative to the parent component.
Default value: **BadgePosition.RightTop**
**NOTE**
This parameter cannot be set in percentage. If it is set to an invalid value, the default value **(0,0)** will be used.| | maxCount | number | No| Maximum number of notifications. When the maximum number is reached, only **maxCount+** is displayed.
Default value: **99**
Value range: [-2147483648, 2147483647]
If the value is not an integer, it is rounded off to the nearest integer. For example, 5.5 is rounded off to 5.| | style | [BadgeStyle](#badgestyle) | Yes| Style of the badge, including the font color, font size, badge color, and badge size.| @@ -44,7 +44,7 @@ Since API version 9, this API is supported in ArkTS widgets. | Name| Type| Mandatory| Default Value| Description| | -------- | -------- | -------- | -------- | -------- | | value | string | Yes| - | Prompt content.| -| position | [BadgePosition](#badgeposition) | No| BadgePosition.RightTop | Position to display the badge relative to the parent component.| +| position | [BadgePosition](#badgeposition)\|[Position10+](ts-types.md#position8) | No| BadgePosition.RightTop | Position to display the badge relative to the parent component.| | style | [BadgeStyle](#badgestyle) | Yes| - | Style of the badge, including the font color, font size, badge color, and badge size.| ## BadgePosition diff --git a/en/application-dev/reference/arkui-ts/ts-container-panel.md b/en/application-dev/reference/arkui-ts/ts-container-panel.md index bc38624a2bfaa00817283a74515a1ecfd647f2cd..395f32d6e9ec42c8578e76084631319f935be6b9 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-panel.md +++ b/en/application-dev/reference/arkui-ts/ts-container-panel.md @@ -40,6 +40,7 @@ In addition to the [universal attributes](ts-universal-attributes-size.md), the | miniHeight | string \| number | Panel height in the **PanelMode.Mini** mode.
Default value: **48**
Unit: vp
**NOTE**
This attribute cannot be set in percentage.| | show | boolean | Whether to show the panel.| | backgroundMask9+|[ResourceColor](ts-types.md#resourcecolor)|Background mask of the panel.| +| showCloseIcon10+ | boolean | Whether to display the close icon. The value **true** means to display the close icon, and **false** means the opposite.
Default value: **false**| ## PanelType @@ -93,6 +94,7 @@ struct PanelExample { .type(PanelType.Foldable).mode(PanelMode.Half) .dragBar(true) // The drag bar is enabled by default. .halfHeight(500) // The panel height is half of the screen height by default. + .showCloseIcon(true) // Display the close icon. .onChange((width: number, height: number, mode: PanelMode) => { console.info(`width:${width},height:${height},mode:${mode}`) })