Behaviour for table structural elements.
Table elements are the building blocks of table composition. Like canvas elements, they produce tree nodes with typed fields, but they operate in the table domain: rows and cells within a table widget, rendered by the table renderer.
Declaring an element
defmodule Plushie.Table.Row do
use Plushie.Table.Element
element :table_row, container: true do
end
endGenerated code
The macro generates the same code as Plushie.Canvas.Element:
new/1auto-ID constructornew/2constructor with explicit ID- Setter functions per field
push/2andextend/2for container elementsbuild/1forui_node()conversionPlushie.Tree.Nodeprotocol implementation
Uses the same Plushie.DSL.Element infrastructure as canvas
elements. The separate module provides domain-appropriate naming.