diff --git a/api/@internal/component/ets/text_area.d.ts b/api/@internal/component/ets/text_area.d.ts index 5367dcb957f4d052d85780bf7b5f47e1330e7e7a..ef65babd32eca5f5edcbb2cdd854e1622a3c74a9 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. *