Skip to content

Class: ChildEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ChildEvent(type, child?, parent?): ChildEvent

Parameters

NameType
typestring
child?ILeaf
parent?ILeaf

Returns

ChildEvent

Overrides

Event.constructor

Defined in

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

Properties

ADD

Static ADD: string = 'child.add'

Defined in

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


REMOVE

Static REMOVE: string = 'child.remove'

Defined in

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


CREATED

Static CREATED: string = 'created'

Defined in

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


MOUNTED

Static MOUNTED: string = 'mounted'

Defined in

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


UNMOUNTED

Static UNMOUNTED: string = 'unmounted'

Defined in

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


DESTROY

Static DESTROY: string = 'destroy'

Defined in

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


parent

Optional Readonly parent: ILeaf

Implementation of

IChildEvent.parent

Defined in

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


child

Optional Readonly child: ILeaf

Implementation of

IChildEvent.child

Defined in

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


origin

Readonly origin: IObject

Implementation of

IChildEvent.origin

Inherited from

Event.origin

Defined in

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


type

Readonly type: string

Implementation of

IChildEvent.type

Inherited from

Event.type

Defined in

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


target

Readonly target: IEventTarget

Implementation of

IChildEvent.target

Inherited from

Event.target

Defined in

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


current

Readonly current: IEventTarget

Implementation of

IChildEvent.current

Inherited from

Event.current

Defined in

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


bubbles

Readonly bubbles: boolean = false

Implementation of

IChildEvent.bubbles

Inherited from

Event.bubbles

Defined in

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


phase

Readonly phase: number

Implementation of

IChildEvent.phase

Inherited from

Event.phase

Defined in

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


isStopDefault

isStopDefault: boolean

Implementation of

IChildEvent.isStopDefault

Inherited from

Event.isStopDefault

Defined in

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


isStop

isStop: boolean

Implementation of

IChildEvent.isStop

Inherited from

Event.isStop

Defined in

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


isStopNow

isStopNow: boolean

Implementation of

IChildEvent.isStopNow

Inherited from

Event.isStopNow

Defined in

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

Methods

stopDefault

stopDefault(): void

Returns

void

Implementation of

IChildEvent.stopDefault

Inherited from

Event.stopDefault

Defined in

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


stopNow

stopNow(): void

Returns

void

Implementation of

IChildEvent.stopNow

Inherited from

Event.stopNow

Defined in

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


stop

stop(): void

Returns

void

Implementation of

IChildEvent.stop

Inherited from

Event.stop

Defined in

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

Released under the MIT License.