Skip to content

Interface: SelectionViewsStore

Defined in: selection-views.tsx:56

The named-views store for one scope (see selectionViews).

Properties

scope

readonly scope: string

Defined in: selection-views.tsx:58

The owning scope's name — also the storage-key discriminator.

Methods

load()

load(name): object

Defined in: selection-views.tsx:71

Restore a saved view: every selection the scope's dimensions target is reset (all producers' clauses AND visuals cleared), then every snapshotted dimension is set (null clears). Returns what was APPLIED per dimension, plus snapshot entries whose dimension no longer exists. Throws on an unknown view name.

Parameters

name

string

Returns

object

applied

applied: Record<string, unknown>

missing

missing: string[]

name

name: string


names()

names(): string[]

Defined in: selection-views.tsx:60

Reactive: saved view names, alphabetical.

Returns

string[]


remove()

remove(name): boolean

Defined in: selection-views.tsx:73

Delete a saved view. Returns whether it existed.

Parameters

name

string

Returns

boolean


save()

save(name): SavedSelectionView

Defined in: selection-views.tsx:65

Snapshot the scope's current dimension values under name (replaces an existing view of that name). Returns the record written.

Parameters

name

string

Returns

SavedSelectionView


views()

views(): SavedSelectionView[]

Defined in: selection-views.tsx:62

Reactive: full saved records, alphabetical by name.

Returns

SavedSelectionView[]