Interface: IEventTarget
Hierarchy
↳
IEventTarget
Table of contents
Properties
Methods
Properties
innerId
• Readonly
innerId: number
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:39
__captureMap
• Optional
__captureMap: IEventListenerMap
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:40
__bubbleMap
• Optional
__bubbleMap: IEventListenerMap
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:41
syncEventer
• Optional
syncEventer: IEventer
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:42
event
• Optional
event: IEventMap
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:43
Methods
destroyEventer
▸ destroyEventer(): void
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/display/module/ILeafEventer.ts:18
on
▸ on(type
, listener?
, options?
): void
Parameters
Name | Type |
---|---|
type | string | string [] | IEventMap |
listener? | IFunction |
options? | IEventOption |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:45
off
▸ off(type?
, listener?
, options?
): void
Parameters
Name | Type |
---|---|
type? | string | string [] |
listener? | IFunction |
options? | IEventOption |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:46
on_
▸ on_(type
, listener
, bind?
, options?
): IEventListenerId
Parameters
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
bind? | IObject |
options? | IEventOption |
Returns
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:47
off_
▸ off_(id
): void
Parameters
Name | Type |
---|---|
id | IEventListenerId | IEventListenerId [] |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:48
once
▸ once(type
, listener
): void
Parameters
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:49
emit
▸ emit(type
, event?
, capture?
): void
Parameters
Name | Type |
---|---|
type | string |
event? | IObject | IEvent |
capture? | boolean |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:50
emitEvent
▸ emitEvent(event?
, capture?
): void
Parameters
Name | Type |
---|---|
event? | IEvent |
capture? | boolean |
Returns
void
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:51
hasEvent
▸ hasEvent(type
, capture?
): boolean
Parameters
Name | Type |
---|---|
type | string |
capture? | boolean |
Returns
boolean
Inherited from
Defined in
leafer/packages/interface/src/event/IEventer.ts:52
destroy
▸ destroy(): void
Returns
void