Named saved views
Lets users and apps create, rename, update, duplicate, delete and list named views, each storing a state snapshot with metadata. One view can be marked as the default. Views are stored through any storage adapter.
Planned. This page shows the specification from issue #201. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with three seeded views and no active view.
Expected behavior
Saving creates a view entry with a name, an id, timestamps and the included slices. Applying the view restores it. Reloading the page applies the default view automatically. Deleting the active view leaves the grid unchanged but clears the active marker.
Planned API surface
views.create(name, {include})views.update(id)views.renameviews.duplicateviews.removeviews.listviews.apply(id)views.setDefault(id)onViewsChangeAcceptance criteria
- View ids are generated uniquely and stay stable when a view is renamed. (pending)
- View names are unique within a scope (compared case-insensitively) and limited to a documented length. (pending)
- Each view records the slices it covers, and applying it uses partial restore for those slices only. (pending)
- Exactly one view can be the default, and it is applied after initialState but before URL state. (pending)
- The view list is sortable by name or by last used. (pending)