LearnNewsExamplesServices
Frontmatter
tagName9.2.0
nameexamples.serverside.toolbarItems
publishedAt5/23/2025, 12:55:36 PM
isPrerelease
isDraft

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

Screenshot 2025-05-23 at 14 54 53

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

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