BubblingEventInfo (engine/view/observer)
@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo
The event object passed to bubbling event callbacks. It is used to provide information about the event as well as a tool to manipulate it.
Filtering
Properties
-
readonly
currentTarget : Document | Node | null
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#currentTarget
The current bubbling target.
-
readonly
eventPhase : 'none' | 'capturing' | 'atTarget' | 'bubbling'
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#eventPhase
The current event phase.
-
readonly inherited
name : String
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#name
The event name.
-
readonly inherited
path : Array.<Object>
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#path
Path this event has followed. See
delegate
. -
The value which will be returned by
fire
.It's
undefined
by default and can be changed by an event listener:dataController.fire( 'getSelectedContent', ( evt ) => { // This listener will make `dataController.fire( 'getSelectedContent' )` // always return an empty DocumentFragment. evt.return = new DocumentFragment(); // Make sure no other listeners are executed. evt.stop(); } );
-
readonly inherited
source : Object
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#source
The object that fired the event.
-
readonly
startRange : Range
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#startRange
The view range that the bubbling should start from.
-
protected
_currentTarget : Document | Node | null
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#_currentTarget
The current bubbling target.
-
protected
_eventPhase : 'none' | 'capturing' | 'atTarget' | 'bubbling'
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#_eventPhase
The current event phase.
Methods
-
constructor( source, name, startRange )
module:engine/view/observer/bubblingeventinfo~BubblingEventInfo#constructor
Parameters
source : Object
The emitter.
name : String
The event name.
startRange : Range
The view range that the bubbling should start from.
-
Removes the current callback from future interactions of this event.
-
Stops the event emitter to call further callbacks for this event interaction.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing? Please report it via our issue tracker.