From a0ddb6174200c4d85502fb8f21972f88fd36e6ad Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Tue, 2 Sep 2025 10:38:26 +0800 Subject: [PATCH] TextArea scroll bar color Signed-off-by: wangxiuxiu96 --- api/@internal/component/ets/text_area.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/api/@internal/component/ets/text_area.d.ts b/api/@internal/component/ets/text_area.d.ts index d330e3dc16..008fe33628 100644 --- a/api/@internal/component/ets/text_area.d.ts +++ b/api/@internal/component/ets/text_area.d.ts @@ -18,6 +18,7 @@ * @kit ArkUI */ +import { ColorMetrics } from '../Graphics'; /** * Provides the method of switching the cursor position. * @@ -1304,6 +1305,18 @@ declare class TextAreaAttribute extends CommonMethod { */ barState(value: BarState): TextAreaAttribute; + /** + * Set scrollbar color of TextArea. + * + * @param { Optional } color - Color of the rich TextArea scrollbar. + * @returns { TextAreaAttribute } returns the instance of the TextAreaAttribute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + scrollBarColor(color: Optional): TextAreaAttribute; + /** * Controls whether the selection menu pops up. * -- Gitee