Skip to content

Interface: ILeafEventer

Hierarchy

Table of contents

Methods

Methods

on

on(type, listener?, options?): void

Parameters

NameType
typestring | string[] | IEventMap
listener?IFunction
options?boolean | IEventListenerOptions

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:10


off

off(type?, listener?, options?): void

Parameters

NameType
type?string | string[]
listener?IFunction
options?boolean | IEventListenerOptions

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:11


on_

on_(type, listener, bind?, options?): IEventListenerId

Parameters

NameType
typestring | string[]
listenerIFunction
bind?IObject
options?boolean | IEventListenerOptions

Returns

IEventListenerId

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:12


off_

off_(id): void

Parameters

NameType
idIEventListenerId | IEventListenerId[]

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:13


once

once(type, listener, capture?): void

Parameters

NameType
typestring | string[]
listenerIFunction
capture?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:14


emit

emit(type, event?, capture?): void

Parameters

NameType
typestring
event?IObject | IEvent
capture?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:15


emitEvent

emitEvent(event?, capture?): void

Parameters

NameType
event?IEvent
capture?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:16


hasEvent

hasEvent(type, capture?): boolean

Parameters

NameType
typestring
capture?boolean

Returns

boolean

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:17


destroyEventer

destroyEventer(): void

Returns

void

Defined in

leafer/packages/interface/src/display/module/ILeafEventer.ts:18

Released under the MIT License.