Events
textSelection.change
Detailed viewer event reference for textSelection.change.
Summary
- Category: Text Selection
- Event:
textSelection.change - Trigger: Fires when text selection changes.
Payload
[TextSelection | null];
Payload fields
Payload is not an object literal. Use the declaration above and runtime guards when handling this event.
Subscription example
function onEvent(payload) {
console.log('textSelection.change', payload);
}
instance.addEventListener('textSelection.change', onEvent);
instance.removeEventListener('textSelection.change', onEvent);