ViewDocumentDomEventData
class
Information about a DOM event in context of the ViewDocument
.
It wraps the native event, which usually should not be used as the wrapper contains
additional data (like key code for keyboard events).
Type parameters
-
TEvent : extends Event = Event
The type of DOM Event that this class represents.
Properties
-
document : ViewDocument
readonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#document
The instance of the document.
-
domEvent : TEvent
readonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#domEvent
The DOM event.
-
domTarget : HTMLElement
readonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#domTarget
The DOM target.
-
target : ViewElement
readonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#target
The tree view element representing the target.
-
view : EditingView
readonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#view
Instance of the view controller.
Methods
-
constructor( view, domEvent, [ additionalData ] )
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#constructor
Type parameters
TEvent : extends [object Object] = Event
Parameters
view : EditingView
The instance of the view controller.
domEvent : TEvent
The DOM event.
[ additionalData ] : object
Additional properties that the instance should contain.
-
preventDefault() → void
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#preventDefault
-
stopPropagation() → void
module:engine/view/observer/domeventdata~ViewDocumentDomEventData#stopPropagation