Interface: IMenuBarController
molecule.IMenuBarController
Hierarchy
Partial
<Controller
>↳
IMenuBarController
Methods
count
▸ Optional
count(name
): number
Count the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | Event 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
Name | Type | Description |
---|---|---|
name | string | Event name |
...args | any | Arguments |
Returns
void
Inherited from
Partial.emit
Defined in
src/common/event/eventBus.ts:20
getMenuBarDataByMode
▸ Optional
getMenuBarDataByMode(mode
, menuData
): IMenuBarItem
[]
Parameters
Name | Type |
---|---|
mode | "horizontal" | "vertical" |
menuData | IMenuBarItem [] |
Returns
Defined in
initView
▸ Optional
Abstract
initView(): void
Returns
void
Inherited from
Partial.initView
Defined in
onClick
▸ onClick(event
, item
): void
Parameters
Name | Type |
---|---|
event | MouseEvent <any , any > |
item | IMenuBarItem |
Returns
void
Defined in
onSelect
▸ Optional
onSelect(key
, item?
): void
Parameters
Name | Type |
---|---|
key | UniqueId |
item? | IActivityBarItem |
Returns
void
Defined in
subscribe
▸ Optional
subscribe(name
, callback
): void
Subscribe the service event
Parameters
Name | Type | Description |
---|---|---|
name | string | string [] | Event name |
callback | Function | Callback 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
Name | Type | Description |
---|---|---|
name | any | The event name |
Returns
void
Inherited from
Partial.unsubscribe
Defined in
src/common/event/eventBus.ts:37
updateActivityBar
▸ Optional
updateActivityBar(): void
Returns
void
Defined in
updateFocusinEle
▸ Optional
updateFocusinEle(ele
): void
Parameters
Name | Type |
---|---|
ele | null | HTMLElement |
Returns
void
Defined in
updateMenuBar
▸ Optional
updateMenuBar(): void
Returns
void
Defined in
updateMenuBarMode
▸ Optional
updateMenuBarMode(mode
): void
Parameters
Name | Type |
---|---|
mode | "horizontal" | "vertical" |
Returns
void
Defined in
updateSideBar
▸ Optional
updateSideBar(): void
Returns
void
Defined in
updateStatusBar
▸ Optional
updateStatusBar(): void
Returns
void