From 058622e688c1e9008bb6d56c51ac35a21e3b7c23 Mon Sep 17 00:00:00 2001 From: xiangyuan6 Date: Tue, 19 Aug 2025 15:06:58 +0800 Subject: [PATCH] TextArea scroll bar color Signed-off-by: xiangyuan6 --- 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