pseudo-dom
    Preparing search index...

    Class EventService

    Simulate the behaviour of the Event Class when there is no DOM available.

    Hierarchy (View Summary)

    Implements

    Index
    • Parameters

      • typeArg: string = ''
      • eventOptions: { bubbles?: boolean; cancelable?: boolean; composed?: boolean } = {}

      Returns EventService

    AT_TARGET: 2
    BUBBLING_PHASE: 3
    CAPTURING_PHASE: 1
    NONE: 0
    • get bubbles(): boolean

      A Boolean indicating whether the event bubbles up through the Dom or not.

      Returns boolean

    • get cancelable(): boolean

      A Boolean indicating whether the event is cancelable.

      Returns boolean

    • get composed(): boolean

      A Boolean value indicating whether the event can bubble across the boundary between the shadow Dom and the regular Dom.

      Returns boolean

    • get currentTarget(): PseudoEventTarget

      A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent; it's possible this has been changed along the way through re-targeting.

      Returns PseudoEventTarget

    • get defaultPrevented(): boolean

      Indicates whether event.preventDefault() has been called on the event.

      Returns boolean

    • get eventPhase(): number

      Indicates which phase of the event flow is being processed. Uses PseudoEvent constants.

      Returns number

    • get isTrusted(): boolean

      Indicates whether the event was initiated by the browser (after a user click for instance) or by a script (using an event creation method, like event.initEvent)

      Returns boolean

    • get timeStamp(): number

      The time at which the event was created (in milliseconds). By specification, this value is time since epoch, but in reality browsers' definitions vary; in addition, work is underway to change this to be a DomHighResTimeStamp instead.

      Returns number

    • For this particular event, no other listener will be called. Neither those attached on the same element, nor those attached on elements which will be traversed later (in capture phase, for instance)

      Returns null