跳到主要内容
版本:0.9.0-beta.2

Interface: IPanelController

molecule.IPanelController

Hierarchy

Methods

count

Optional count(name): number

Count the service event

Parameters

NameTypeDescription
namestringEvent name

Returns

number

Inherited from

Partial.count

Defined in

src/common/event/eventBus.ts:28


emit

Optional emit(name, ...args): void

Emit the service event

Parameters

NameTypeDescription
namestringEvent name
...argsanyArguments

Returns

void

Inherited from

Partial.emit

Defined in

src/common/event/eventBus.ts:20


initView

Optional Abstract initView(): void

Returns

void

Inherited from

Partial.initView

Defined in

src/react/controller.ts:4


onClose

Optional onClose(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

src/controller/panel.tsx:21


onTabChange

Optional onTabChange(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

src/controller/panel.tsx:19


onToolbarClick

Optional onToolbarClick(e, item): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
itemIActionBarItemProps<any>

Returns

void

Defined in

src/controller/panel.tsx:20


subscribe

Optional subscribe(name, callback): void

Subscribe the service event

Parameters

NameTypeDescription
namestring | string[]Event name
callbackFunctionCallback function

Returns

void

Inherited from

Partial.subscribe

Defined in

src/common/event/eventBus.ts:11


unsubscribe

Optional unsubscribe(name): void

Unsubscribe the specific event

Parameters

NameTypeDescription
nameanyThe event name

Returns

void

Inherited from

Partial.unsubscribe

Defined in

src/common/event/eventBus.ts:37