Class: CdiUtils
Defined in: src/sdk/cdi/CdiUtils.ts:6
A utility class for working with CDIs.
Constructors
Constructor
new CdiUtils():
CdiUtils
Returns
CdiUtils
Methods
getEventBusTopicSuffix()
staticgetEventBusTopicSuffix<ID>(id):IDextends""?"":`_${ID}`
Defined in: src/sdk/cdi/CdiUtils.ts:12
Gets the suffix for event bus topics associated with a given CDI index.
Type Parameters
| Type Parameter |
|---|
ID extends string |
Parameters
| Parameter | Type | Description |
|---|---|---|
id | ID | The index for which to get the suffix. |
Returns
ID extends "" ? "" : `_${ID}`
The suffix for event bus topics associated with the specified CDI index.
navSourceIdEquals()
staticnavSourceIdEquals(a,b):boolean
Defined in: src/sdk/cdi/CdiUtils.ts:22
Checks whether two CDI navigation sources are equal.
Parameters
| Parameter | Type | Description |
|---|---|---|
a | Readonly<NavSourceId> | The first source to check. |
b | Readonly<NavSourceId> | The second source to check. |
Returns
boolean
Whether the two specified CDI navigation sources are equal.