A row inside a table widget.
Each row has an explicit ID used for selection events and
LIS-based wire diffing. Children are Plushie.Table.Cell
elements, one per column.
table_row "user-1" do
cell "name", text(user.name)
cell "email", text(user.email)
end
Summary
Functions
Converts this widget struct to a ui_node() map.
Appends multiple children to the widget.
Creates a new element without an explicit ID (auto-assigned by parent container).
Creates a new element with the given ID and keyword options.
Appends a child to the widget.
Returns the element type string for the wire protocol.
Applies keyword options to an existing widget struct.
Types
@type option() :: []
@type t() :: %Plushie.Table.Row{ children: [Plushie.Widget.ui_node()], id: String.t() | nil }
Functions
@spec build(widget :: t()) :: Plushie.Widget.ui_node()
Converts this widget struct to a ui_node() map.
@spec extend(widget :: t(), children :: [Plushie.Widget.child()]) :: t()
Appends multiple children to the widget.
Creates a new element without an explicit ID (auto-assigned by parent container).
Creates a new element with the given ID and keyword options.
@spec push(widget :: t(), child :: Plushie.Widget.child()) :: t()
Appends a child to the widget.
@spec type_name() :: String.t()
Returns the element type string for the wire protocol.
Applies keyword options to an existing widget struct.