Skip to main content

Interface: CasSystemOptions

Defined in: src/sdk/cas/CasSystem.ts:195

Options for the CAS System.

Properties

sortActiveMessages()?

optional sortActiveMessages: (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

ParameterTypeDescription
aReadonly<CasActiveMessage>The first message to compare.
bReadonly<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.