Install the package
Use the same published version as this showcase, or review the upstream release notes before updating.
npm install @wieslawsoltes/gridweb@0.8.0This package’s license: MIT. Retain upstream and bundled third-party notices when redistributing.
Mount your first view
Import Workbook from the root and /controls to register
<div class="toolbar"><button id="increase">Increase design hours</button><button id="reset">Reset inputs</button><button id="inspect">Inspect total</button></div><grid-web id="grid" style="display:block;height:370px"></grid-web><p class="hint">Double-click cells to edit. Column D and the total use the real formula engine.</p>The complete executable source is in the usage guide. Imports shown here are intended for a bundler or a browser import map; bare npm imports do not resolve in ordinary HTML by themselves.
Own the lifetime
Keep one intentional workbook owner and release view subscriptions when removing a grid. Optional collaboration requires your own authenticated server.
The playground replaces its entire isolated frame on each run. In your application, use the framework’s unmount or disposal hook instead. Do not dispose a shared model while another view still owns it.
Read the lifecycle guide →Know the contract
Source repositories can contain work newer than the published package. The showcase uses @wieslawsoltes/gridweb@0.8.0.