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 = EventThe type of DOM Event that this class represents.
Properties
document : ViewDocumentreadonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#documentThe instance of the document.
domEvent : TEventreadonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#domEventThe DOM event.
domTarget : HTMLElementreadonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#domTargetThe DOM target.
target : ViewElementreadonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#targetThe tree view element representing the target.
view : EditingViewreadonlymodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#viewInstance of the view controller.
Methods
constructor( view, domEvent, [ additionalData ] )module:engine/view/observer/domeventdata~ViewDocumentDomEventData#constructorType parameters
TEvent : extends Event = Event
Parameters
view : EditingViewThe instance of the view controller.
domEvent : TEventThe DOM event.
[ additionalData ] : objectAdditional properties that the instance should contain.
preventDefault() → voidmodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#preventDefaultstopPropagation() → voidmodule:engine/view/observer/domeventdata~ViewDocumentDomEventData#stopPropagation