mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
!9740 增加设置RichEditor支持开发者配置自定义文本选中颜色和手柄颜色(包含光标)的API
Merge pull request !9740 from 王关/master
This commit is contained in:
commit
46ec654796
22
api/@internal/component/ets/rich_editor.d.ts
vendored
22
api/@internal/component/ets/rich_editor.d.ts
vendored
@ -2509,6 +2509,28 @@ declare class RichEditorAttribute extends CommonMethod<RichEditorAttribute> {
|
||||
* @since 12
|
||||
*/
|
||||
placeholder(value: ResourceStr, style?: PlaceholderStyle): RichEditorAttribute;
|
||||
|
||||
/**
|
||||
* Set caret color of rich editor.
|
||||
*
|
||||
* @param { ResourceColor } value - Custom color types.
|
||||
* @returns { RichEditorAttribute } The attribute of the rich editor.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
caretColor(value: ResourceColor): RichEditorAttribute;
|
||||
|
||||
/**
|
||||
* Set background color of selected text in rich editor.
|
||||
*
|
||||
* @param { ResourceColor } value - Custom color types.
|
||||
* @returns { RichEditorAttribute } The attribute of the rich editor.
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @since 12
|
||||
*/
|
||||
selectedBackgroundColor(value: ResourceColor): RichEditorAttribute;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user