From daade8abe189f858149b0a2699ef7c058ef98f41 Mon Sep 17 00:00:00 2001 From: Lizhiqi Date: Fri, 8 Aug 2025 15:25:46 +0800 Subject: [PATCH] Description: add styled placeholder IssueNo: Feature or Bugfix: Feature Binary Source:No Signed-off-by: lizhiqi --- api/@internal/component/ets/common.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 4155378988..ebd861ee3d 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -33889,6 +33889,18 @@ declare abstract class TextContentControllerBase { * @arkts 1.1&1.2 */ getText(range?: TextRange): string; + + /** + * Set the styled placeholder + * + * @param { StyledString } styledString - The styledString for placeholder. + * If the parameter is invalid, this method will have no effect. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 21 + */ + setStyledPlaceholder(styledString: StyledString): void; } /** -- Gitee