!8500 add onSelectionChanged interface

Merge pull request !8500 from xuyue/master
This commit is contained in:
openharmony_ci 2024-01-18 12:30:02 +00:00 committed by Gitee
commit e6d39c3258
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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.
*