command
Version:
v0.26.0
Opens a new window with list of versions in this module.
Published: May 16, 2026
License: AGPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Liveflux Tree Example
A runnable example demonstrating a simple interactive tree component with:
- Add root nodes
- Add child nodes to any node
- Delete any node (subtree is removed)
Run
# from the liveflux repo root
go run ./examples/tree
Then open http://localhost:8080
Screenshots



What it does
- Renders a server-side Tree using
liveflux.SSR
- Uses forms and
data-flux-action to send actions: add_root, add_child, delete
- Mounts the JS runtime via
liveflux.Script() and posts to /liveflux
Notes
- The component wraps markup with
t.Root(content) (from liveflux.Base) which includes required hidden fields.
- Inputs are serialized from the nearest
<form> for each button, per the client runtime in js/handlers.js.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.