From 4818abcf3997984dc775c9a538632bf17c41eb58 Mon Sep 17 00:00:00 2001 From: wangxiuxiu96 Date: Mon, 1 Sep 2025 10:03:24 +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 5367dcb957..ef65babd32 100644 --- a/api/@internal/component/ets/text_area.d.ts +++ b/api/@internal/component/ets/text_area.d.ts @@ -30,6 +30,7 @@ import { InputCounterOptions, TextContentControllerBase, SelectionOptions, TextDecorationOptions, CommonMethod, Callback, Optional, Bindable } from './common'; import { CustomBuilder } from './builder'; import { Resource } from '../../global/resource'; +import { ColorMetrics } from '../Graphics'; /*** endif */ /** @@ -1387,6 +1388,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