Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ViewMouseEvent

Hierarchy

Index

Properties

AT_TARGET

AT_TARGET: number

BUBBLING_PHASE

BUBBLING_PHASE: number

CAPTURING_PHASE

CAPTURING_PHASE: number

MouseEvent

MouseEvent: object

Type declaration

NONE

NONE: number

altKey

altKey: boolean

bubbles

bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

button

button: number

buttons

buttons: number

cancelBubble

cancelBubble: boolean

cancelable

cancelable: boolean

clientX

clientX: number

clientY

clientY: number

composed

composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

ctrlKey

ctrlKey: boolean

currentTarget

currentTarget: EventTarget | null

Returns the object whose event listener's callback is currently being invoked.

defaultPrevented

defaultPrevented: boolean

detail

detail: number

eventPhase

eventPhase: number

fromElement

fromElement: Element
deprecated

isTrusted

isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

layerX

layerX: number

layerY

layerY: number

metaKey

metaKey: boolean

movementX

movementX: number

movementY

movementY: number

offsetX

offsetX: number

offsetY

offsetY: number

pageX

pageX: number

pageY

pageY: number

relatedTarget

relatedTarget: EventTarget

Optional relatedTargetView

relatedTargetView: View | null

returnValue

returnValue: boolean

screenX

screenX: number

screenY

screenY: number

shiftKey

shiftKey: boolean

srcElement

srcElement: EventTarget | null
deprecated

target

target: EventTarget | null

Returns the object to which event is dispatched (its target).

Optional targetView

targetView: View

timeStamp

timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

toElement

toElement: Element
deprecated

type

type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

view

view: Window

which

which: number
deprecated

x

x: number

y

y: number

Methods

composedPath

  • composedPath(): EventTarget[]
  • Returns EventTarget[]

getModifierState

  • getModifierState(keyArg: string): boolean
  • Parameters

    • keyArg: string

    Returns boolean

initEvent

  • initEvent(type: string, bubbles?: undefined | false | true, cancelable?: undefined | false | true): void
  • Parameters

    • type: string
    • Optional bubbles: undefined | false | true
    • Optional cancelable: undefined | false | true

    Returns void

initMouseEvent

  • initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void
  • Parameters

    • typeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean
    • viewArg: Window
    • detailArg: number
    • screenXArg: number
    • screenYArg: number
    • clientXArg: number
    • clientYArg: number
    • ctrlKeyArg: boolean
    • altKeyArg: boolean
    • shiftKeyArg: boolean
    • metaKeyArg: boolean
    • buttonArg: number
    • relatedTargetArg: EventTarget | null

    Returns void

initUIEvent

  • initUIEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number): void
  • Parameters

    • typeArg: string
    • canBubbleArg: boolean
    • cancelableArg: boolean
    • viewArg: Window
    • detailArg: number

    Returns void

preventDefault

  • preventDefault(): void
  • Returns void

stopImmediatePropagation

  • stopImmediatePropagation(): void
  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    Returns void

stopPropagation

  • stopPropagation(): void
  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    Returns void