Class: ChildEvent
Hierarchy
↳
ChildEvent
Implements
Table of contents
Constructors
Properties
- ADD
- REMOVE
- CREATED
- MOUNTED
- UNMOUNTED
- DESTROY
- parent
- child
- origin
- type
- target
- current
- bubbles
- phase
- isStopDefault
- isStop
- isStopNow
Methods
Constructors
constructor
• new ChildEvent(type
, child?
, parent?
): ChildEvent
Parameters
Name | Type |
---|---|
type | string |
child? | ILeaf |
parent? | ILeaf |
Returns
Overrides
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
Defined in
leafer/packages/event/src/ChildEvent.ts:16
child
• Optional
Readonly
child: ILeaf
Implementation of
Defined in
leafer/packages/event/src/ChildEvent.ts:17
origin
• Readonly
origin: IObject
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:7
type
• Readonly
type: string
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:9
target
• Readonly
target: IEventTarget
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:10
current
• Readonly
current: IEventTarget
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:11
bubbles
• Readonly
bubbles: boolean
= false
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:13
phase
• Readonly
phase: number
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:14
isStopDefault
• isStopDefault: boolean
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:16
isStop
• isStop: boolean
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:17
isStopNow
• isStopNow: boolean
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:18
Methods
stopDefault
▸ stopDefault(): void
Returns
void
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:25
stopNow
▸ stopNow(): void
Returns
void
Implementation of
Inherited from
Defined in
leafer/packages/event/src/Event.ts:30
stop
▸ stop(): void
Returns
void