Skip to main content

Interface: ISidebarService

services.ISidebarService

Hierarchy

Table of contents

Properties

Methods

Properties

state

Protected Abstract state: ISidebar

Inherited from

Component.state

Defined in

src/react/component.ts:44

Methods

add

add(pane, isActive?): void

Add a new Sidebar pane

Parameters

NameTypeDescription
paneISidebarPane
isActive?booleanWhether to activate the current pane

Returns

void

Defined in

src/services/workbench/sidebarService.ts:17


get

get(id): undefined | ISidebarPane

Get a specific pane via id

Parameters

NameType
idUniqueId

Returns

undefined | ISidebarPane

Defined in

src/services/workbench/sidebarService.ts:11


remove

remove(id): void

Remove a pane

Parameters

NameType
idUniqueId

Returns

void

Defined in

src/services/workbench/sidebarService.ts:27


reset

reset(): void

Reset the sidebar data

Returns

void

Defined in

src/services/workbench/sidebarService.ts:36


setActive

setActive(id?): void

Set the specific pane as active

Parameters

NameType
id?UniqueId

Returns

void

Defined in

src/services/workbench/sidebarService.ts:32


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(pane): void

Update a specific pane

Parameters

NameType
paneISidebarPane

Returns

void

Defined in

src/services/workbench/sidebarService.ts:22