Skip to content

Class: LeaferEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LeaferEvent(type, target?): LeaferEvent

Parameters

NameType
typestring
target?IEventTarget

Returns

LeaferEvent

Inherited from

Event.constructor

Defined in

leafer/packages/event/src/Event.ts:20

Properties

origin

Readonly origin: IObject

Inherited from

Event.origin

Defined in

leafer/packages/event/src/Event.ts:7


type

Readonly type: string

Inherited from

Event.type

Defined in

leafer/packages/event/src/Event.ts:9


target

Readonly target: IEventTarget

Inherited from

Event.target

Defined in

leafer/packages/event/src/Event.ts:10


current

Readonly current: IEventTarget

Inherited from

Event.current

Defined in

leafer/packages/event/src/Event.ts:11


bubbles

Readonly bubbles: boolean = false

Inherited from

Event.bubbles

Defined in

leafer/packages/event/src/Event.ts:13


phase

Readonly phase: number

Inherited from

Event.phase

Defined in

leafer/packages/event/src/Event.ts:14


isStopDefault

isStopDefault: boolean

Inherited from

Event.isStopDefault

Defined in

leafer/packages/event/src/Event.ts:16


isStop

isStop: boolean

Inherited from

Event.isStop

Defined in

leafer/packages/event/src/Event.ts:17


isStopNow

isStopNow: boolean

Inherited from

Event.isStopNow

Defined in

leafer/packages/event/src/Event.ts:18


START

Static START: string = 'leafer.start'

Defined in

leafer/packages/event/src/LeaferEvent.ts:8


BEFORE_READY

Static BEFORE_READY: string = 'leafer.before_ready'

Defined in

leafer/packages/event/src/LeaferEvent.ts:10


READY

Static READY: string = 'leafer.ready'

Defined in

leafer/packages/event/src/LeaferEvent.ts:11


AFTER_READY

Static AFTER_READY: string = 'leafer.after_ready'

Defined in

leafer/packages/event/src/LeaferEvent.ts:12


VIEW_READY

Static VIEW_READY: string = 'leafer.view_ready'

Defined in

leafer/packages/event/src/LeaferEvent.ts:14


VIEW_COMPLETED

Static VIEW_COMPLETED: string = 'leafer.view_completed'

Defined in

leafer/packages/event/src/LeaferEvent.ts:16


STOP

Static STOP: string = 'leafer.stop'

Defined in

leafer/packages/event/src/LeaferEvent.ts:18


RESTART

Static RESTART: string = 'leafer.restart'

Defined in

leafer/packages/event/src/LeaferEvent.ts:19


END

Static END: string = 'leafer.end'

Defined in

leafer/packages/event/src/LeaferEvent.ts:21

Methods

stopDefault

stopDefault(): void

Returns

void

Inherited from

Event.stopDefault

Defined in

leafer/packages/event/src/Event.ts:25


stopNow

stopNow(): void

Returns

void

Inherited from

Event.stopNow

Defined in

leafer/packages/event/src/Event.ts:30


stop

stop(): void

Returns

void

Inherited from

Event.stop

Defined in

leafer/packages/event/src/Event.ts:36

Released under the MIT License.