Interface: IProblemsService
services.IProblemsService
Hierarchy
Component
\<IProblems
>↳
IProblemsService
Table of contents
Properties
Methods
Properties
state
• Protected
Abstract
state: IProblems
\<any
>
Inherited from
Component.state
Defined in
Methods
add
▸ add(data
): void
Add single or multiple items data
Parameters
Name | Type |
---|---|
data | IProblemsItem \<any > | IProblemsItem \<any >[] |
Returns
void
Defined in
src/services/problemsService.ts:16
onSelect
▸ onSelect(callback
): void
Listen to select a problem tree node
Parameters
Name | Type |
---|---|
callback | (node : IProblemsTreeNode \<any >) => void |
Returns
void
Defined in
src/services/problemsService.ts:39
remove
▸ remove(id
): void
Remove the specific problem items
Parameters
Name | Type | Description |
---|---|---|
id | UniqueId | 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
Name | Type | Description |
---|---|---|
name | string | string [] | Event name |
listener | Function | Listener 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
Name | Type | Description |
---|---|---|
name | any | The event name |
listener? | Function | optional, 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
Name | Type | Description |
---|---|---|
data | IProblemsItem \<T > | IProblemsItem \<T >[] | single or multiple problems |
Returns
void