Interface DefaultPreventableEvent<T>

Base type of MICD events that allow listeners to avoid a default behaviour.

Type parameters

  • T

    The type of the target of the event.

Hierarchy

  • Event<T>
    • DefaultPreventableEvent

Index

Properties

Readonly target

target: T

The event source.

Readonly type

type: string

The event type.

Methods

isDefaultPrevented

  • isDefaultPrevented(): boolean
  • Returns whether the default behaviour of the event has been prevented.

    Returns boolean

    true if [preventDefault] has been called on this event

preventDefault

  • preventDefault(): void
  • Prevents the default behaviour of the event. The exact effect depends on the event type.

    Returns void

This API is still under development and is subject to change. Copyright © Math I Can Do Solutions Incorporated and/or its licensors.