Skip to main content

Interface: IProblemsService

services.IProblemsService

Hierarchy

Table of contents

Properties

Methods

Properties

state

Protected Abstract state: IProblems\<any>

Inherited from

Component.state

Defined in

src/react/component.ts:44

Methods

add

add(data): void

Add single or multiple items data

Parameters

NameType
dataIProblemsItem\<any> | IProblemsItem\<any>[]

Returns

void

Defined in

src/services/problemsService.ts:16


onSelect

onSelect(callback): void

Listen to select a problem tree node

Parameters

NameType
callback(node: IProblemsTreeNode\<any>) => void

Returns

void

Defined in

src/services/problemsService.ts:39


remove

remove(id): void

Remove the specific problem items

Parameters

NameTypeDescription
idUniqueId | UniqueId[]single or multiple ids

Returns

void

Defined in

src/services/problemsService.ts:21


reset

reset(): void

Reset the ProblemsService state data

Returns

void

Defined in

src/services/problemsService.ts:25


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


toggleProblems

toggleProblems(): void

Toggle the Problems view between display or hidden

Returns

void

Defined in

src/services/problemsService.ts:34


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\<T>(data): void

Update the specific data

Type parameters

Name
T

Parameters

NameTypeDescription
dataIProblemsItem\<T> | IProblemsItem\<T>[]single or multiple problems

Returns

void

Defined in

src/services/problemsService.ts:30