---
tagName: 9.2.0
name: examples.serverside.toolbarItems
publishedAt: '2025-05-23T12:55:36Z'
isPrerelease: false
isDraft: false
---
# examples.serverside.toolbarItems

* New example, which contains a viewport with an empty toolbar & a button to load the toolbar items from a JSON file
* It demonstrates that we can easily do "server-side" run-time updates
* It demonstrates that JSON reduces network traffic compared to XML
* It demonstrates that fetching neo component trees **significantly** reduces traffic compared to passing DOM trees

Code:
https://github.com/neomjs/neo/blob/dev/examples/serverside/toolbarItems/Viewport.mjs
https://github.com/neomjs/neo/blob/dev/examples/serverside/toolbarItems/resources/data/toolbar-items.json

<img width="1699" alt="Screenshot 2025-05-23 at 14 54 53" src="https://github.com/user-attachments/assets/d7ccb8c3-9172-4054-938b-65247fc8293c" />

Online Demo:
https://neomjs.com/dist/production/examples/serverside/toolbarItems/

Online Demo Dev Mode:
https://neomjs.com/examples/serverside/toolbarItems/
