LumenRoot classclient
Part of Lumen
A mounted tree: what Lumen.mount returns. It keeps the element at its top, the panel it
was mounted into and the instances in between.
Summary
Methods
get_panel()client
Returns the first panel at the top of the tree.
get_panels()client
Returns the panels at the top of the tree.
init(container)client
Creates a root inside a container panel.
invalidate()client
Lays the whole tree out again.
is_valid()client
Checks whether the tree is mounted and its container still exists.
unmount()client
Takes the whole tree down and removes its panels.
update(element)client
Reconciles the tree against an element, or renders it again with the element it has.
Methods
Returns the first panel at the top of the tree.
Returns
- Panel, or nil if the tree has none
Returns the panels at the top of the tree.
Returns
- List<Panel>
Creates a root inside a container panel. Use Lumen.mount instead.
Parameters
- container Panel the panel the tree is mounted into
Lays the whole tree out again.
Checks whether the tree is mounted and its container still exists.
Returns
- Boolean
Takes the whole tree down and removes its panels. The container stays.
Reconciles the tree against an element, or renders it again with the element it has. Unmounts the tree if the container is gone.
Parameters
- element Map optional, defaults to
nilthe new element at the top; the current one if nil
Returns
- Boolean false if the container is gone