LearnNewsExamplesServices
Frontmatter
tagName9.2.0
nameexamples.serverside.toolbarItems
publishedAt5/23/2025, 2: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/f56ea57be3eb68446236e1f79d7893a35fd103fd/examples/serverside/toolbarItems/Viewport.mjs https://github.com/neomjs/neo/blob/854bac57fcfb951771c45871b854ce14f01bdefc/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/