Appearance
@jtopo/core / EventBase
Class: EventBase
事件对象基类
Hierarchy
EventBase
Implements
EventInit
Table of contents
Constructors
Properties
Methods
Constructors
constructor
new EventBase(type
, initData?
)
Parameters
Name | Type |
---|---|
type | string |
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