Interface: CasSystemOptions
Defined in: src/sdk/cas/CasSystem.ts:195
Options for the CAS System.
Properties
sortActiveMessages()?
optionalsortActiveMessages: (a,b) =>number
Defined in: src/sdk/cas/CasSystem.ts:205
A sorting function for the casActiveMessageSubject array. If not defined, then messages are sorted by priority (from first to last: Warning, Caution, Priority, SafeOp), and messages with the same priority are sorted by the real-world (operating system) time at which their associated alerts were last activated (later times first).
Parameters
| Parameter | Type | Description |
|---|---|---|
a | Readonly<CasActiveMessage> | The first message to compare. |
b | Readonly<CasActiveMessage> | The second message to compare. |
Returns
number
a negative number if a should be first, or a positive number if b should be first, or 0 if the order should be unchanged.