Skip to content

@eightkk/vue-weave / core / WeaveSnapshotRegistry

Interface: WeaveSnapshotRegistry ​

Defined in: src/core/snapshot.ts:402

Application-side names that a snapshot refers to. Functions are never stored in JSON.

Properties ​

codecs? ​

optional codecs?: readonly SnapshotCodec<any>[]

Defined in: src/core/snapshot.ts:403


columns? ​

optional columns?: Readonly<Record<string, SnapshotColumnDefinition>>

Defined in: src/core/snapshot.ts:406

Column functions by column ID (or registryId). Columns not named by the snapshot are appended, visible.


comparators? ​

optional comparators?: Readonly<Record<string, (a, b) => number>>

Defined in: src/core/snapshot.ts:409


editors? ​

optional editors?: Readonly<Record<string, unknown>>

Defined in: src/core/snapshot.ts:407


layouts? ​

optional layouts?: Readonly<Record<string, SnapshotLayoutFactory>>

Defined in: src/core/snapshot.ts:404


onMissing? ​

optional onMissing?: "fallback" | "fail"

Defined in: src/core/snapshot.ts:415

What to do when a layout, column, editor, renderer or comparator name is not registered. 'fail' (the default) fails the restore. 'fallback' keeps a warning and drops the item, so the default display is used. A missing codec always fails.


renderers? ​

optional renderers?: Readonly<Record<string, unknown>>

Defined in: src/core/snapshot.ts:408

Released under the MIT License.