mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
!8500 add onSelectionChanged interface
Merge pull request !8500 from xuyue/master
This commit is contained in:
commit
e6d39c3258
12
api/@internal/component/ets/rich_editor.d.ts
vendored
12
api/@internal/component/ets/rich_editor.d.ts
vendored
@ -2268,6 +2268,18 @@ declare class RichEditorAttribute extends CommonMethod<RichEditorAttribute> {
|
||||
*/
|
||||
onSelect(callback: (value: RichEditorSelection) => void): RichEditorAttribute;
|
||||
|
||||
/**
|
||||
* Called when selection range or caret position is changed.
|
||||
*
|
||||
* @param { function } callback - The triggered function when change selection range or caret position.
|
||||
* @returns { RichEditorAttribute }
|
||||
* @syscap SystemCapability.ArkUI.ArkUI.Full
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 12
|
||||
*/
|
||||
onSelectionChange(callback: (value: RichEditorRange) => void): RichEditorAttribute;
|
||||
|
||||
/**
|
||||
* Get text value information when about to input.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user