file-system-js: File System (1k to 1M items as a tree)

The tree-rows demo: no backend, no network calls. A single <vn-grid> in tree mode, fed a client-generated file system (folders and files) through StaticDataManager: 1,000 items by default, selectable up to 1,000,000 from the toolbar. It shows the grid's tree rows (docs/vanilla-grid/24-tree-rows-implementation.md) on a dataset of its own, separate from large-dataset-js, whose rows are a flat list of people. A preview pane beside the grid shows the selected row.

What it shows

Script load order

prefs.js, theme-selector.js and rows-selector.js are plain scripts loaded before vanilla-grid-toolbar.js: the toolbar renders its first template synchronously when it is defined, so <file-system-theme-selector> and <file-system-rows-selector> must already be defined by then, and the theme selector restores a persisted theme while the document is still parsing, before <vn-grid> upgrades. app.js is a module and runs last; it imports splitter.js and preview.js.

Run

Serve the workspace root with any static server, then open /samples/file-system-js/index.html. No backend or network access is needed.

Test hook: ?rows=<n> pins the tree size and wins over the toolbar dropdown, which then renders nothing (tests/playwright/file-system-js-smoke.spec.js and tests/playwright/file-system-js-preview.spec.js pass ?rows=1000). Without it the demo opens at the last size picked (1,000 on a first visit).

Files