@jsvision/datagrid / ErrorRegistry
Interface: ErrorRegistry
Defined in: datagrid/src/error-registry.ts:16
A reactive registry of cells whose last commit was blocked, each with a message, plus the active one.
Methods
active()
active():
string|null
Defined in: datagrid/src/error-registry.ts:26
The current active message to show in the band, or null — a reactive read.
Returns
string | null
clear()
clear(
key):void
Defined in: datagrid/src/error-registry.ts:20
Clear a cell. If it held the active message, the band recomputes to the next still-invalid cell.
Parameters
key
string
Returns
void
has()
has(
key):boolean
Defined in: datagrid/src/error-registry.ts:22
Whether a cell is invalid — a reactive read (re-runs in an effect on change).
Parameters
key
string
Returns
boolean
keys()
keys():
ReadonlySet<string>
Defined in: datagrid/src/error-registry.ts:35
The invalid-cell key set (for the paint pass) — a reactive read.
Returns
ReadonlySet<string>
message()
message(
key):string|undefined
Defined in: datagrid/src/error-registry.ts:24
The message for a cell, or undefined — a reactive read.
Parameters
key
string
Returns
string | undefined
note()
note(
message):void
Defined in: datagrid/src/error-registry.ts:33
Push (or clear, with null) a transient message that has no cell key — used by the row gate for a cross-field message not anchored to one invalid cell. It shares the single last-writer-wins active channel with keyed set. note(null) recomputes the active message to the most-recent still-invalid keyed cell (else null), so clearing a transient message never hides one a red cell still needs.
Parameters
message
string | null
Returns
void
set()
set(
key,message):void
Defined in: datagrid/src/error-registry.ts:18
Mark a cell invalid with message; it also becomes the active (band) message.
Parameters
key
string
message
string
Returns
void