From a3f615e5c9e567b3d2a06b473532012d832fd832 Mon Sep 17 00:00:00 2001 From: xushunjie Date: Tue, 19 Aug 2025 21:18:35 +0800 Subject: [PATCH] =?UTF-8?q?CheckboxGroup=E7=BB=84=E4=BB=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81contentModifier=E6=8E=A5=E5=8F=A3=E8=83=BD=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xushunjie --- .../component/ets/checkboxgroup.d.ts | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/api/@internal/component/ets/checkboxgroup.d.ts b/api/@internal/component/ets/checkboxgroup.d.ts index d46ef5b54b..70515b7c98 100644 --- a/api/@internal/component/ets/checkboxgroup.d.ts +++ b/api/@internal/component/ets/checkboxgroup.d.ts @@ -435,6 +435,51 @@ interface CheckboxGroupInterface { */ declare type OnCheckboxGroupChangeCallback = (value: CheckboxGroupResult) => void; +/** + * CheckBoxGroupConfiguration used by content modifier. + * + * @extends CommonConfiguration + * @interface CheckBoxGroupConfiguration + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ +declare interface CheckBoxGroupConfiguration extends CommonConfiguration { + /** + * Current name of checkboxgroup. + * + * @type { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + name: string; + + /** + * Defines the select status of CheckboxGroup. + * + * @type { SelectStatus } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + status: SelectStatus; + + /** + * Trigger checkboxgroup select change. + * + * @type { Callback } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + triggerChange: Callback; +} + /** * Defines the attribute functions of CheckboxGroup. * @@ -744,6 +789,18 @@ declare class CheckboxGroupAttribute extends CommonMethod): CheckboxGroupAttribute; + + /** + * Set the content modifier of checkboxgroup. + * + * @param { Optional> } modifier - The content modifier of checkboxgroup. + * @returns { CheckboxGroupAttribute } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + contentModifier(modifier: Optional>): CheckboxGroupAttribute; } /** -- Gitee