Skip to main content
Version: 0.9.0-beta.2

Interface: IMenuBarController

molecule.IMenuBarController

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


getMenuBarDataByMode

Optional getMenuBarDataByMode(mode, menuData): IMenuBarItem[]

Parameters

NameType
mode"horizontal" | "vertical"
menuDataIMenuBarItem[]

Returns

IMenuBarItem[]

Defined in

src/controller/menuBar.ts:32


initView

Optional Abstract initView(): void

Returns

void

Inherited from

Partial.initView

Defined in

src/react/controller.ts:4


onClick

onClick(event, item): void

Parameters

NameType
eventMouseEvent<any, any>
itemIMenuBarItem

Returns

void

Defined in

src/controller/menuBar.ts:25


onSelect

Optional onSelect(key, item?): void

Parameters

NameType
keyUniqueId
item?IActivityBarItem

Returns

void

Defined in

src/controller/menuBar.ts:24


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


updateActivityBar

Optional updateActivityBar(): void

Returns

void

Defined in

src/controller/menuBar.ts:29


updateFocusinEle

Optional updateFocusinEle(ele): void

Parameters

NameType
elenull | HTMLElement

Returns

void

Defined in

src/controller/menuBar.ts:26


updateMenuBar

Optional updateMenuBar(): void

Returns

void

Defined in

src/controller/menuBar.ts:28


updateMenuBarMode

Optional updateMenuBarMode(mode): void

Parameters

NameType
mode"horizontal" | "vertical"

Returns

void

Defined in

src/controller/menuBar.ts:31


updateSideBar

Optional updateSideBar(): void

Returns

void

Defined in

src/controller/menuBar.ts:30


updateStatusBar

Optional updateStatusBar(): void

Returns

void

Defined in

src/controller/menuBar.ts:27