Skip to main content

Interface: IStatusBarService

services.IStatusBarService

Hierarchy

Table of contents

Properties

Methods

Properties

state

Protected Abstract state: IStatusBar

Inherited from

Component.state

Defined in

src/react/component.ts:44

Methods

add

add(item, float): void

Add a new StatusBar item into right or left status

Parameters

NameTypeDescription
itemIStatusBarItem\<any>
floatFloatposition the item to left or right

Returns

void

Defined in

src/services/workbench/statusBarService.ts:16


getStatusBarItem

getStatusBarItem(id, float?): null | IStatusBarItem\<any>

Get the specific StatusBar item

Parameters

NameType
idUniqueId
float?Float

Returns

null | IStatusBarItem\<any>

Defined in

src/services/workbench/statusBarService.ts:33


onClick

onClick(callback): any

Listen to the StatusBar click event

Parameters

NameType
callback(e: MouseEvent, item: IStatusBarItem\<any>) => void

Returns

any

Defined in

src/services/workbench/statusBarService.ts:42


remove

remove(id, float?): void

Remove the specific StatusBar item

Parameters

NameTypeDescription
idUniqueId
float?Floatif provided, it'll remove the item in spcific position

Returns

void

Defined in

src/services/workbench/statusBarService.ts:22


reset

reset(): void

Reset the contextMenu data and the StatusBar data , including right and left

Returns

void

Defined in

src/services/workbench/statusBarService.ts:37


subscribe

subscribe(name, listener): void

Subscribe the service event

Parameters

NameTypeDescription
namestring | string[]Event name
listenerFunctionListener function

Returns

void

Inherited from

Component.subscribe

Defined in

src/common/event/eventBus.ts:11


unsubscribe

unsubscribe(name, listener?): void

Unsubscribe the specific event and the listener function

Parameters

NameTypeDescription
nameanyThe event name
listener?Functionoptional, it unsubscribes events via name if not pass the listener function

Returns

void

Inherited from

Component.unsubscribe

Defined in

src/common/event/eventBus.ts:39


update

update(item, float?): void

Update the specific StatusBar item, it'll update the item found in left

Parameters

NameTypeDescription
itemIStatusBarItem\<any>the id field is required
float?Floatif provided, it'll update the item in specific position

Returns

void

Defined in

src/services/workbench/statusBarService.ts:28