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

Returns the first panel at the top of the tree.
Returns the panels at the top of the tree.
Creates a root inside a container panel.
Lays the whole tree out again.
Checks whether the tree is mounted and its container still exists.
unmount()client
Takes the whole tree down and removes its panels.
Reconciles the tree against an element, or renders it again with the element it has.

Methods

LumenRoot:get_panel()

client packages/lumen/lib/cl_reconciler.lua:529

Returns the first panel at the top of the tree.

Returns

  • Panel, or nil if the tree has none

LumenRoot:get_panels()

client packages/lumen/lib/cl_reconciler.lua:523

Returns the panels at the top of the tree.

Returns

  • List<Panel>

LumenRoot:init(container)

client packages/lumen/lib/cl_reconciler.lua:477

Creates a root inside a container panel. Use Lumen.mount instead.

Parameters

  • container Panel the panel the tree is mounted into

LumenRoot:invalidate()

client packages/lumen/lib/cl_reconciler.lua:534

Lays the whole tree out again.

LumenRoot:is_valid()

client packages/lumen/lib/cl_reconciler.lua:485

Checks whether the tree is mounted and its container still exists.

Returns

  • Boolean

LumenRoot:unmount()

client packages/lumen/lib/cl_reconciler.lua:514

Takes the whole tree down and removes its panels. The container stays.

LumenRoot:update(element)

client packages/lumen/lib/cl_reconciler.lua:493

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 nil the new element at the top; the current one if nil

Returns

  • Boolean false if the container is gone

Defined in