Skip to content

@jtopo/core / EventBase

Class: EventBase

事件对象基类

Hierarchy

Implements

  • EventInit

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EventBase(type, initData?)

Parameters

NameType
typestring
initData?Partial<EventBase>

Properties

bubbles

bubbles: boolean

Implementation of

EventInit.bubbles


cancelable

cancelable: boolean

Implementation of

EventInit.cancelable


composed

composed: boolean

Implementation of

EventInit.composed


defaultPrevented

defaultPrevented: boolean


type

type: string

Methods

preventDefault

preventDefault(): void

Returns

void